Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #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.

    #737444

    Hey cabplan!

    Can you please share backend access for us?
    Thanks a lot

    Cheers!
    Basilis

    #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.

    #737567

    Hi,

    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,
    Rikard

    #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&#8221;, 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&#8221;, 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.

    #737812

    Hi!

    Glad you figured it out and thank you for sharing your solution :)
    Let us know if you have any other questions or issues

    Cheers!
    Yigit

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘index.php is being added to my localhost installation URL’ is closed to new replies.