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?
Inconsistent URLs [solved]
-
- Forum Members
- Posts: 80
- Joined: Thu Jul 21, 2011 10:29 am
Inconsistent URLs [solved]
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...
Reason: Please use double quotes on fake links so they aren't clickable...
Re: Inconsistent URLs
Must be because of rewrite rules in .htaccess I suppose. Post the relevant part of it here.
Re: Inconsistent URLs
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).
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
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.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).
OR the directory exists as rotezecke writes AND has it's own .htaccess with rewriterules.
-
- Forum Members
- Posts: 80
- Joined: Thu Jul 21, 2011 10:29 am
Re: Inconsistent URLs [solved]
It appears the problem was with site caching locally. So couldn't see updates to .htaccess