Page 1 of 1

301 redirect help neaded

Posted: Fri Jun 29, 2012 1:04 pm
by daend
Hi,
I converted site from really old version of CMSMS to latest 1.10.3. Unfortunately site structure and some URLs changed and now we need to create 301 redirect for these pages.

Here are two exmamples what I have unsuccessfully tried to put these two codes in to .htaccess just below RewriteBase /

Code: Select all

RewriteRule /en/accommodation-suppliers/checkinkrakow-com http://www.suricata-travel.com/en/cooperation/poland/krakow [R=301,L]
nothing happened and result is still 404 error.
second option we tried:

Code: Select all

redirect 301 /news/4//Ambassador-Group-Becomes-Our-Partner http://www.suricata-travel.com/news/4/22/Ambassador-Group-Becomes-Our-Partner 
this had some results and page is recirected to: http://www.suricata-travel.com/news/4/2 ... ur-Partner still with 404 error.

Problem is that we have over 100 error with 404 page not found now on site and message in Google Webmaster tools with possible outage.

Could you please help?

Re: 301 redirect help neaded

Posted: Fri Jun 29, 2012 1:29 pm
by Rolf

Re: 301 redirect help neaded

Posted: Sun Jul 01, 2012 8:28 am
by daend
Thank you for link. This helps for all pages accept news module links where I need to redirect for example:

Code: Select all

news/29//Corto-penzion-novy-partner-nasi-spolecnosti
to this page

Code: Select all

http://www.suricata-travel.com/news/29/28/Corto-penzion-novy-partner-nasi-spolecnosti
I have this rewrite rule:

Code: Select all

RewriteRule	^news/29//Corto-penzion-novy-partner-nasi-spolecnosti$	http://www.suricata-travel.com/news/29/28/Corto-penzion-novy-partner-nasi-spolecnosti	[R=301,L]
Unfortunately id didnt work and returns 404 Error. Any suggestions?