Post by luzzati » Mon Jan 07, 2013 4:48 pm

Hi,
I have a new site.
The following .htaccess is ok just to allow the site work, but the several 301 redirects I have give a "page not found" instead of redirecting.
Does anyone have a clue for me please?
Thank you
Ugo

Code: Select all

RewriteEngine On
RewriteBase /

RewriteRule ^sitemap.xml$ index.php?route=feed/google_sitemap [L]
RewriteRule ^googlebase.xml$ index.php?route=feed/google_base [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

redirect 301 http://www.smallsigns.net/ceramic-signs.html http://www.smallsigns.net/door-signage

New member

Posts

Joined
Sun Aug 26, 2012 12:36 am

Post by luzzati » Tue Jan 08, 2013 1:08 am

Please help me

I cannot loose all my old URLs SEO :)

New member

Posts

Joined
Sun Aug 26, 2012 12:36 am

Post by ChetanCx » Tue Jan 08, 2013 1:57 am

i think i have read this somewhere try this

Code: Select all

redirect 301 /ceramic-signs.html  http://www.smallsigns.net/door-signage

User avatar
Active Member

Posts

Joined
Sat Dec 08, 2012 8:12 pm

Post by luzzati » Tue Jan 08, 2013 1:44 pm

Got it - this is the correct redirect for me:

Code: Select all

redirect 301 /oldfile.html http://www.mysite.net/newfile/?
(I just added /? at the end)

thank you
Ugo

New member

Posts

Joined
Sun Aug 26, 2012 12:36 am
Who is online

Users browsing this forum: Semrush [Bot] and 122 guests