Forum Moderators: open
[mysite.com...]
to
[mysite.com...]
In apache access_log we get result codes "302 352" for the first request and "200 22897" for the second one. The url shown in the browser also changes.
I know that <META HTTP-EQUIV="REFRESH"...> is considered spam by some search engines (like Inktomi?) Would this type of redirect (returning a 302 and changing the URL) also be considered spam by any major search engine?
Thanks!
Si Chen
This triggers the redirect internally, so that no URL changed is observed in the browser [or by the search engine].
By the way, the [P] stands for mod_proxy, which also needs to be installed.
An internal rewrite, rather than an external 301 or 302 redirect, is what you need. This simply tells the server to get the content from a different path internal to the server, and is invisible to clients. To demonstrate the differences, here are a 302 redirect and an internal rewrite:
302 External redirect:
RewriteRule ^/category/([^.]+)\.htm$ http://www.mysite.com/webstore/control/category/~category_id=$1 [R,L]
RewriteRule ^/category/([^.]+)\.htm$ /webstore/control/category/~category_id=$1 [L]
It should not be necessary to use the proxy flag [P] unless the request needs to be passed to another server.
Jim