• Resolved Islo

    (@nuytun)


    Hi
    All went well with the installer and site works, thanks.

    Problem, in the top address bar links for pages show url/index.php/pagename. Need to remove the index.php link.

    I am on Linode and checked your FAQ section but the solution for Linode must be outdated.

    I saw another post her in the forum and the solution was something about allowing permissions in the htaccess file, but the file in the old site worked fine.

    Any tips to solve this? Otherwise the site transfer went supereasy.
    Thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Islo

    (@nuytun)

    Hi again.
    Doing more checking, the only permalink that works is the plain setting:
    Plain https://url/?p=123

    None of the others work. Was trying to get the page names to show.

    Not sure if that is htaccess related.

    If you have any ideas, thanks.

    Hey @nuytun,

    When you save your perma-links in the admin it should write tot he .htaccess file. It might be that you don’t have enough permissions to update it when you save. Regarding the index.php issue, I found this thread that may help:
    https://derekmolloy.ie/remove-index-php-from-your-wordpress-url/

    Cheers~

    Thread Starter Islo

    (@nuytun)

    Thanks.

    I tried but same problem. You see the post works but the custom doesn’t.
    I’ll keep looking and post if I find a solution.
    Compliments on a great plugin – just wish this small item wasn’t there.
    Thanks anyway.

    Thanks~ I saw that problem several years back but don’t recall the fix it does seem like it has something to do with the apache config file though…

    Thread Starter Islo

    (@nuytun)

    Here is the solution to prevent index.php appearing in the address bar.
    Should work for Apache running on any VPS. Also have to remove ‘index.php’ from the custom permalink field. Change path accordingly in .conf.


    Configure WordPress to Allow Permalinks on Apache
    Instruct Apache to allow individual sites to update the .htaccess file, by adding the following options to the Directory section in your virtual host configuration:

    /etc/apache2/sites-available/example.com.conf

    <Directory /var/www/html/example.com/public_html>
    Options Indexes FollowSymLinks
    AllowOverride All
    Require all granted
    </Directory>
    Restart Apache to enable the changes:

    sudo systemctl restart apache2

    Cory Lamle

    (@corylamleorg)

    Thanks @nuytun for the solution! I have added this to the FAQ page

    • This reply was modified 8 years ago by Cory Lamle. Reason: linked
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘path shows /index.php/ pages’ is closed to new replies.