Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #748628

    Hello I am running into issues with my site after changing the homepage to be different from its WordPress installation directory.

    The homepage displays the correct menu, but when I click into some of the other pages it links to /directory/pagename instead of just /pagename. This is happening for only some of the pages.

    I copied over my index.php and .htaaccess to the root folder and changed the Site Address (URL) in General settings.

    There was also an old installation of WordPress and I moved all of those files to a temporary folder as well.

    #748731

    I removed the following from my .htaccess files both in the root and wp install directory and the menu seems to be working again:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^/fwf/wp-content/endurance-page-cache/ – [L]
    RewriteCond %{REQUEST_METHOD} !POST
    RewriteCond %{QUERY_STRING} !.*=.*
    RewriteCond %{HTTP_COOKIE} !(wordpress_test_cookie|comment_author|wp\-postpass|wordpress_logged_in|wptouch_switch_toggle) [NC]
    RewriteCond %{DOCUMENT_ROOT}/fwf/wp-content/endurance-page-cache/$1/_index.html -f
    RewriteRule ^(.*)$ /fwf/wp-content/endurance-page-cache/$1/_index.html [L]
    </IfModule>
    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType image/jpg “access plus 1 year”
    ExpiresByType image/jpeg “access plus 1 year”
    ExpiresByType image/gif “access plus 1 year”
    ExpiresByType image/png “access plus 1 year”
    ExpiresByType text/css “access plus 1 month”
    ExpiresByType application/pdf “access plus 1 month”
    ExpiresByType text/javascript “access plus 1 month”
    ExpiresByType image/x-icon “access plus 1 year”
    ExpiresDefault “access plus 1 weeks”
    </IfModule>

    #749140

    Hi,

    Great, glad you got it working and thanks for the feedback. You might get more attention to posts like these if you post them in general WordPress forums.

    Best regards,
    Rikard

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.