• Resolved sachinsangde

    (@sachinsangde)


    I have migrated a joomla website to wordpress.
    It has around 1400 posts.
    The issue is I am not able to set permalinks other than default or custom(/index.php/%postname%)
    When I set the permalinks to postname – Got the following error –
    (`Not Found
    The requested URL /erica-schoenberg/ was not found on this server.
    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.`)

    I need a clean url without .php
    My current url is – https://mysite.com/index.php/postname
    I have read many forums but still unable to find a solution.
    I am using Apache/2.2.15 (CentOS) server with mod_rewrite enabled.

    What can be the problem?
    Please! Any help is appreciated!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    It sounds like one of two problems.

    You either don’t have a .htaccess file in your WordPress root directory, going to Settings > Permalinks and hitting the save button twice should try to generate this for you or tell you what it should look like if it can’t.

    The other problem is that you don’t have mod_rewrite enabled. I see you mention that you do have it enabled, but did you restart Apache after enabling it (it doesn’t work until you restart it, just reloading won’t be enough).

    Thread Starter sachinsangde

    (@sachinsangde)

    Thanks for reply Marius!

    The solution was different.

    My server-technical guy did the following and the problem solved.

    in files wp-includes/vars.php
    Commented $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’) ? 1 : 0;
    and added $is_apache = 1;

    That solved my problem. Dont know how but!!

    Moderator Marius L. J.

    (@clorith)

    Hi,

    That’s bad, that change will be overwritten by the next WordPress update (One should never edit the WordPress core files).

    It sounds like your server might be reporting the wrong httpd (or you aren’t on Apache), do you have access to a phpinfo() output from your setup, the SERVER_SOFTWARE string would be interesting to know the value of in this case (even if it is to identify an Apache version that has a different string so we can fix it if it’s on our end).

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘remove .php from website url’ is closed to new replies.