Enabling Pretty URLs causes some pages to load the home page instead
Permalink
Hey everyone!
My website's pages load fine if I don't have pretty urls enabled, but when I do enable them everything seems to 'half work'.
Here's the site:
http://tinyurl.com/3fw9ejj
The problems are:
1) Every page's title says : Home, regardless if it's loading the homepage or not.
2) The menu items: Home, When To Stage, and Staging Rates all load the page content that it should. The menu items Staging, Consulting, and Testimonials simply load the home page.
I've check the page properties and the 'page paths and location' are set correctly.
When I enable Pretty URLs, this is the code it gives me:
Any help would be great :)
My website's pages load fine if I don't have pretty urls enabled, but when I do enable them everything seems to 'half work'.
Here's the site:
http://tinyurl.com/3fw9ejj
The problems are:
1) Every page's title says : Home, regardless if it's loading the homepage or not.
2) The menu items: Home, When To Stage, and Staging Rates all load the page content that it should. The menu items Staging, Consulting, and Testimonials simply load the home page.
I've check the page properties and the 'page paths and location' are set correctly.
When I enable Pretty URLs, this is the code it gives me:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 [L] </IfModule>
Any help would be great :)
Actually - that isn't the full story... Without the trailing slash, those page were heading over to a flat html version of the pages - an old site I guess...
I'm not sure of the reasoning, but I'm guessing that something is getting confused here. I would create a folder on your server called 'old' and put all of your static html pages into it. See if that helps the issue...
Jon
I'm not sure of the reasoning, but I'm guessing that something is getting confused here. I would create a folder on your server called 'old' and put all of your static html pages into it. See if that helps the issue...
Jon
Well. You are absolutely right! Thank you haha. All is well now.... What an oversight on my part.
The issue appears to be the trailing slash. As long as their is no trailing slash on the link, then it works. With the trailing slash - home page...
For now, check all of your links and ensure there is no trailing slash. I know that isn't a fix, but at least it will get your pages showing for now...
I'll have a further look around. Anyone else any ideas?
Jon