Redirect 301 of the old url
- zoro
- Offline
- New Member
16 years 9 months ago #2122
by zoro
The below simple format (put in .htaccess) works but I do not know if there are any hidden disadvantages:
Redirect permanent /olddirectory www.domain.com/newdirectory
Redirect permanent /olddirectory www.domain.com/newdirectory
Please Log in or Create an account to join the conversation.
- Saka
- Offline
- Administrator
16 years 9 months ago #2123
by Saka
Put this code above the SEF Advance block, i.e. right after the lines 'RewriteEngine On' and 'RewriteBase /'.
Emir Sakic
www.sakic.net
Sorry the last line in each case should have been as follows but still did not work:
RewriteRule ^business/$ www.abc.com/directory/ [R=301,L]
RewriteRule ^business/?(.*)$ www.abc.com/directory/$1 [R=301,L]
Put this code above the SEF Advance block, i.e. right after the lines 'RewriteEngine On' and 'RewriteBase /'.
Emir Sakic
www.sakic.net
Please Log in or Create an account to join the conversation.