Jump to content

[SOLVED]How can i manage htaccess for a redirect 301?


Recommended Posts

Hi guys,

i've a problem, i just changed a week ago the url of my site from www.affaridanoi.com/it      to    www.affaridanoi.com

I've just deleted the /it but i've lot of error 404... i know, i did a stupid things , but i'm a noob :)

I red that i've to write something on my htaccess file , but what i've to write to allow to ALL my url /it   to go to the normal URL?

 

Thanks for your support :)

Edited by affaridanoi (see edit history)
Link to comment
Share on other sites

Add these lines to the top or the end of your .htaccess, but please don't add them into the block Prestashop is creating automatically.

RewriteCond %{HTTP_HOST} ^www.affaridanoi.com/it$ [NC]
RewriteRule ^(.*) http://www.affaridanoi.com/$1 [R=301]

Good Luck.

Thanks a lot,

i've already did everything putting this on the htaccess :)

 

Redirect permanent /it/  http://www.affaridanoi.com/

Redirect permanent /de/  http://www.affaridanoi.com/

Redirect permanent /en/  http://www.affaridanoi.com/

Redirect permanent /fr/  http://www.affaridanoi.com/

Redirect permanent /es/  http://www.affaridanoi.com/

 

 

Thanks for your support

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...