Forum Moderators: phranque
Oddly enough, when I am logged on under https, they are no longer rewritten. (They're the original URL format with query strings and all) But if I remove the "S" from https and hit reload, they're rewritten again.
Any ideas what's causing this?
However, all of this becomes moot if you redirect all non-secure pages to http, and redirect all pages which must be secure to https. Also, pick one domain variant -- www.example.com or example.com; If you have the same page appearing at two URLs --whether at both http:// and https:// or on both the www- and non-www domains, then that is a latent duplicate-content problem.
See the scores of duplicate-content and domain and URL canonicalization threads here at WebmasterWorld.
Jim
Do I need separate rules for https though?
I don't want ANYTHING to be rewritten (for SEO) if the url being linked begins with https.
(This URL would be bad:
https;//www.mysite.com/rewritten_url.html
- I want all of the rewritten URLs like http;//www.mysite.com/rewritten_url.html)
Oddly enough..
Say I am on https;//www.mysite.com
The navigation link is: http;//www.mysite.com/index.php?cat=2
Now I go to: http;//www.mysite.com
The navigation link is: http;//www.mysite.com/rewritten_url.html
Oddly enough..
Say I am on [example.com...]
The navigation link is: http://www.example.com/index.php?cat=2
Now I go to: http://www.example.com
The navigation link is: http://www.example.com/rewritten_url.html
If by this you mean that a link, when you hover over it on a page, is different between http and https, then the problem is in your page-generation script. Mod_rewrite does not change the links on your pages, it changes the files associated with URLs after those URLs are requested from your server, and before any content is generated or served.
Jim