Tagged: Permalinks
-
AuthorPosts
-
January 23, 2017 at 9:37 pm #737427
I have just purchased this them and have everything running but I am noticing the URL has “index.php” in the middle of the URL. I have tried to change the permalinks to “Post Name” but upon doing that all the pages break with a 404. I came across this article:
I tried to follow the directions about emptying the .htaccess file and resetting permalinks, but the .htaccess gets rewritten with:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /beckerroofing/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /beckerroofing/index.php [L] </IfModule> # END WordPress
And the only way to get the pages working again is to set it back to “Custom Structure” and add “/index.php//%postname%/
I have tried to remove the “index.php” in the .htaccess file but that does not help either, just stays as 404.
Wondering if anyone had any insights on how to (on localhost or in general) how to get “Post Name” option working with Permalinks for this Enfold theme.
January 23, 2017 at 10:44 pm #737444Hey cabplan!
Can you please share backend access for us?
Thanks a lotCheers!
BasilisJanuary 23, 2017 at 10:51 pm #737449@Basilis, well I cannot because I have it on a localhost MAMP install, not on the web. Just wondering if there were steps I need to take for a localhost.
My URL for the localhost is “http://localhost/beckerroofing/ but that will not work for the web.
January 24, 2017 at 7:37 am #737567Hi,
I’ve had no problems with that same setting on my local MAMP install so I think it’s something specific to your setup. What are your settings under Settings->General in WordPress?
Best regards,
RikardJanuary 24, 2017 at 4:13 pm #737803@Rikard, so I think I got it working, basically I had to assign a localhost domain to the installation.
The Site Address and WordPress Address was “http://localhost/beckerroofing”, so maybe it was that.
So for those having this issue, once I edited my “/Applications/MAMP/conf/apache/httpd.conf” and added that Virtual Host:
<VirtualHost *:80> ServerName local.beckerroofing.com DocumentRoot /Applications/MAMP/htdocs/beckerroofing <Directory /Applications/MAMP/htdocs/beckerroofing> Options Indexes FollowSymLinks Multiviews AllowOverride All Order allow,deny Allow from all </Directory> </VirtualHost>
You need to stop MAMP and restart it.
and then added the local domain to my /etc/hosts file:
127.0.0.1 local.beckerroofing.com
Then go back to “Settings–>General” and change both the Site Address and WordPress Address to the new local domain “http://local.beckerroofing.com”, and then changed the Permalinks to “Post Name” and Saved, everything seemed to work. Hope this helps others having this issue when using MAMP to test the theme.
January 24, 2017 at 4:30 pm #737812 -
AuthorPosts
- The topic ‘index.php is being added to my localhost installation URL’ is closed to new replies.