Forum Moderators: phranque
can the RewriteRule(s) be skipped if the referrer is from:
http://www.google.com/product_url?q=http://www.example.com/index.php%3Fp%3Dproduct%26id%3D131%26parent%3D122~~blah blah blah
Thanks!
[edited by: jdMorgan at 8:20 pm (utc) on Aug. 20, 2009]
[edit reason] please use example.com only (See Terms of Service) [/edit]
Based on the fact that you rewrite other URLs *to* index.php, it appears that the old Froogle link is not rewritten at all, it simply goes direct to index.php.
So I suspect you'll need to ask a different question here, because we don't know what you want to happen when that old Froogle link is requested.
Jim
You'll likely need to swap the * for a + as * means "zero or more". You don't want to match a URL request like
example.co[b]m/.h[/b]tml as your script can't fulfill that. Additionally, don't let both .html and .htm URLs feed your rewrite. Place a redirect ahead of your rewrites so that if .html is requested, the user is redirected to the equivalent .html URL.
If I set the script to accept either type of url, will I be messing up SEO since there are two ways to get to the same page? I know, I know, the 'flattened' url line needs to be switched from underscores to dashes for better SEO.
thanks
That applies to www and non-www. I already warned you about the .html and .htm in your rewrites. You need to fix those, as well as not create any more such problems; so do not alter your script to accept multiple URLs.
Link to the correct URL. It is links that 'define' URLs. Set up a redirect to catch requests for incorrect URLs and redirect them to the correct URL.