E
E
Evgenia Vershinina2014-09-04 12:23:18
Joomla
Evgenia Vershinina, 2014-09-04 12:23:18

How to make a 301 redirect in joomla?

I need to make a 301 redirect from the page reklamov63.ru/light to the page reklamov63.ru/light/svetovie-koroba-v-samare, Joomla! 2.5.9. .htaccess content:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^reklamov63\.ru [NC]
RewriteRule (.*) reklamov63.ru/$1 [R=301,L]
Redirect 301 /uslugi/narujnayarek/izgotovlenie-naruzhnoj-reklami-v-samare reklamov63.ru /uslugi/narujnayarek
Redirect 301 /viveski/viveski-v-samare reklamov63.ru/viveski
Redirect 301 /shtender/shtender-v-samare reklamov63.ru/shtender
Redirect 301 /shtender/kupit-shender reklamov63.ru/shtender
Redirect 301 / corobareklamov63.ru/light/svetovie-koroba-v-samare
Redirect 301 /promo/kupit-promostojku reklamov63.ru/promo
#Redirect 301 /light reklamov63.ru/light/svetovie-koroba-v-samare - if this line is not commented out then it gives a circular redirect like reklamov63.ru/light/svetovie-koroba-v-samare/sveto... all other redirects work fine.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Romanov, 2014-09-05
@Serhioromano

RewriteRule ^light$ http://reklamov63.ru/light/svetovie-koroba-v-samare [L,R=301]

or maybe so
But this will only work if there is nothing after /light. I'm not sure if / is needed before light or not. Check this and that. But I think the first option is correct.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question