• Hello everyone,
    I’ve installed wordpress on my VPS a few weeks ago, and have been setting up my website. However, I noticed that my urls all are in this format: <website>/index.php/%postname%/
    I tried changing it through the interface, but it doesn’t work.
    I looked at https://codex.wordpress.org/Using_Permalinks , and checked that “mod_rewrite” was under apache2handler in Loaded Modules.
    What could make that this isn’t working?
    If I change my structure to /%postname%/, I will get 404 on all pages but the home page.

    Thanks for your help,
    Sneling.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I’m 99% certain this is your issue.

    In your apache2.conf or httpd.conf file where you define your site, add this:

    <Directory /path/to/wordpress/installation>
       AllowOverride All
    <Directory>

    Then restart your apache/httpd daemon.

    By default, apache/httpd ignores .htaccess. The statements above tell it that it should read .htaccess and do what it says.

    Thread Starter sneling

    (@sneling)

    @sterndata , I get a 500 after restarting my apache2 and doing the modification you told me. However, here is my apache2.conf : http://puu.sh/qZGe3/c11dd073a8.png
    I tried to change AllowOverride None to All on the /var/www dir, without success, so I did what you told me, still without success.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    I suspect you have an error in your .htaccess file (which was previously ignored). Please paste the .htaccess file in a reply (use the “code” button to delimit it).

    If you check your error logs, you’ll see the reason for the 500.

    Thread Starter sneling

    (@sneling)

    Okay. Here is the htaccess.
    For the error logs, what should I exactly look at?

    • This reply was modified 7 years, 7 months ago by sneling.

    Yes, it’s broken.. here with Nginx it’s the same behaviour (Permalink structure cannot be changed, only the “simple” structure is working. If logged-in all is working, if logged out all links are broken.

    Seems to be a bug they introduced with 4.6.1.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘404 when changing permalinks’ is closed to new replies.