Link to home
Start Free TrialLog in
Avatar of seopti
seopti

asked on

302 [Temporary] Redirect within the SAME Domain

I'm requesting content from a service and sometimes get a 302 which redirects to my index.html (within my domain) which is a bad thing.

Is it possible to force the server to always send a 301 instead of a 302?
Avatar of Ian Gough
Ian Gough
Flag of United Kingdom of Great Britain and Northern Ireland image

.htaccess
Redirect 302 /d/file.html http://www.htaccesselite.com/r/file.html

or
RedirectMatch 302 /blog(.*) http://www.askapache.com/$1
ASKER CERTIFIED SOLUTION
Avatar of Ian Gough
Ian Gough
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Linux Guru
Hi,

You may refer the following link for 301 redirect details.

http://knowledge.freshpromo.ca/seo-tools/301-redirect.php