htaccess 301 redirect rule - .htaccess

I'm looking for help with making a 301 redirect for:
www.domain.com/word/* to www.domain.com/*

RewriteEngine On
RewriteRule ^/?word/(.*) http://sitename.com/$1

Redirect 301 /word /

Related

Optimize Redirect 301 for a multilingual site

How to optimize Redirect 301 in .htaccess, not to write 3 times for different languages! Thank you! ( [.] = . )
Redirect 301 /ru/category/1269-name-tovar.html https://site[.]com/category
Redirect 301 /en/category/1269-name-tovar.html https://site[.]com/category
Redirect 301 /uk/category/1269-name-tovar.html https://site[.]com/category
This rewrite rule would 301 redirect [any of your three languages]/category/* to https://example.com/category
RewriteEngine On
RewriteRule ^(ru|en|uk)/category/.+ https://example.com/category [L,R=301]

Redirect 301 of subdirectory

There was a link example.com/shop/product-1
now link is example.com/newshop/product-1
I try to wtite htaccess rule to redirect from /shop/ to /newshop/
RewriteRule ^(.*)shop(.*)$ $1newshop$2 [QSA,L,R=301,NC]
Doesn't work. Where is mistake?
You can use the following redirect
Redirect 301 /shop/ /newshop/
This will redirect /shop/.* to /newshop/.*

htaccess 301 redirect /%C2%A0/

I am trying to do a 301 redirect via htaccess from http://www.domainname.co.uk/%C2%A0/ to http://www.domainname.co.uk/ but i can not get it to work
I am having a lot of trouble with the /%C2%A0/ any help with this would be great
thanks
Try:
RewriteEngine On
RewriteRule ^\xC2\xA0/?$ / [L,R=301]
Or if you have to use mod_alias:
RedirectMatch 301 ^/\xC2\xA0/?$ /

301 redirect from htaccess

I'm trying to create permanent redirects for outdated URL's on my site.
For example I have: www.mydomain.com/?v=tv and want it have a permanent 301 redirect to www.mydomain.com/tv.php
I tried this code in my htaccess file but it did not work:
Redirect /?v=tv http://mydomain.com/tv.php
Any Help?
RewriteRule ^tv.php$ http://guessthelogo.com/?v=tv [R=301,L]
I think your missing "301" after "Redirect":
Redirect 301 /?v=tv http://guessthelogo.com/tv.php

redirect using htaccess

I have this location
http://somesite.com/pot_system.shtml
and i want to redirect to
http://somesite.com/build_me_today
I want to do this via htaccess is that possible
I used
Redirect /pot_system.shtml http://somesite.com/build_me_today
Simplest way:
Redirect /pot_system.shtml /build_me_today
Using a 301 redirect:
Redirect 301 /pot_system.shtml /build_me_today
#Matt:
Options +FollowSymLinks
RewriteEngine on
RewriteRule /pot_system.shtml http://somesite.com/build_me_today [R=301,L]

Resources