how to write a .htacess 302 redirect for specific pages

bizbez

Registered Member
Joined
Jan 26, 2011
Messages
86
Reaction score
3
hi all,

here's a super newbie question....
i'd like to do 302 redirection for specific pages (if visitor arrives to page A he is 302'd to page B):

Code:
for example these pages:
if a visitor arrives to this page:

http://domain.com/landsys/profit_black/en/
or
http://www.domain.com/landsys/profit_black/en/
he is 302'd to this page:

http://www.domain.com/en/inner.iframe?id=profit-v1

via .htacess.


thanks guys!
 
Code:
Redirect 302 / http://www.domain.com/en/inner.iframe?id=profit-v1

Place above .htaccess into /landsys/profit_black/en/
 
Code:
Redirect 302 / http://www.domain.com/en/inner.iframe?id=profit-v1

Place above .htaccess into /landsys/profit_black/en/

That would redirect the whole site, instead of that, he should do this:

Code:
Redirect /landsys/profit_black/en/ http://www.domain.com/en/inner.iframe?id=profit-v1
 
That would redirect the whole site, instead of that, he should do this:

Code:
Redirect /landsys/profit_black/en/ http://www.domain.com/en/inner.iframe?id=profit-v1
Note:
Place above .htaccess into /landsys/profit_black/en/

Placing a .htaccess folder inside of a folder only controls that folder's objects.
 
Note:
Place above .htaccess into /landsys/profit_black/en/

Placing a .htaccess folder inside of a folder only controls that folder's objects.

Yeah sorry my bad, didn't read carefully :)
 
Back
Top