Page 1 of 1

Inconsistent URLs [solved]

Posted: Mon Apr 22, 2013 8:55 am
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?

Re: Inconsistent URLs

Posted: Mon Apr 22, 2013 9:07 am
by velden
Must be because of rewrite rules in .htaccess I suppose. Post the relevant part of it here.

Re: Inconsistent URLs

Posted: Mon Apr 22, 2013 9:43 am
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).

Re: Inconsistent URLs

Posted: Mon Apr 22, 2013 10:30 am
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.

Re: Inconsistent URLs [solved]

Posted: Tue Apr 23, 2013 4:06 pm
by douglas1438
It appears the problem was with site caching locally. So couldn't see updates to .htaccess