Inconsistent URLs [solved]

Help with getting the CMS CORE package up and running. This does not include 3rd party modules, PHP scripts, anything downloaded via module manager or from any external source.
Locked
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

Inconsistent URLs [solved]

Post by douglas1438 »

Hi all,

After spending ages setting up my htaccess file with a lot of help from this forum I now have a link problem, my top level links show as:

"http://www.domain.com/?page=eating-drinking

In the address bar despite showing as a pretty URL link in the menu, next levels down show as pretty URLs in menu and address bar.

I realize the URL is valid and part of CMS MS and I should implement canonical urls but why are the top level addresses different to the next level down?
Last edited by Dr.CSS on Thu Apr 25, 2013 11:32 pm, edited 2 times in total.
Reason: Please use double quotes on fake links so they aren't clickable...
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Inconsistent URLs

Post by velden »

Must be because of rewrite rules in .htaccess I suppose. Post the relevant part of it here.
User avatar
rotezecke
Power Poster
Power Poster
Posts: 411
Joined: Fri Apr 18, 2008 9:34 pm

Re: Inconsistent URLs

Post by rotezecke »

wild guess:
your pretty url is something like "domain.com/food/" and you actually have a directory named "food",
default htaccess settings of cmsms would catch this via an exclusion rule and not redirect. however, "domain.com/food/organic/" still works (unless that directory exists, too).
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Inconsistent URLs

Post by velden »

rotezecke wrote:wild guess:
your pretty url is something like "domain.com/food/" and you actually have a directory named "food",
default htaccess settings of cmsms would catch this via an exclusion rule and not redirect. however, "domain.com/food/organic/" still works (unless that directory exists, too).
Guess not; if the browser shows a different url in the address bar then the one that is linked to in the menu (if I understand the OP) I'd guess a erroneous redirection in .htaccess.

OR the directory exists as rotezecke writes AND has it's own .htaccess with rewriterules.
douglas1438
Forum Members
Forum Members
Posts: 80
Joined: Thu Jul 21, 2011 10:29 am

Re: Inconsistent URLs [solved]

Post by douglas1438 »

It appears the problem was with site caching locally. So couldn't see updates to .htaccess
Locked

Return to “[locked] Installation, Setup and Upgrade”