Tagged: menu
-
AuthorPosts
-
February 17, 2017 at 8:19 pm #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.
February 18, 2017 at 1:47 am #748731I 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>February 20, 2017 at 6:07 am #749140 -
AuthorPosts
- You must be logged in to reply to this topic.