Removing “index.php” from Homepage URL
-
Hello,
I recently made an update to my site, I switched from using “plain” permalink structure to using “post name”, after running
sudo a2enmod rewrite
to enable that, and modifying/etc/apache2/apache2.conf
to read:<Directory /var/www/wordpress> Options Indexes FollowSymLinks AllowOverride All Require all granted
I have run into a problem where every page on my site loads perfectly at
https://url.tld/post-name
, except for the homepage, which is requiring me to enter it ashttps://url.tld/index.php
, further research tells me this could be a problem with my .htaccess file, the config of which you can see below:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
Any suggestions/guidance is greatly appreciated!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Removing “index.php” from Homepage URL’ is closed to new replies.