logo
down
shadow

How to create a 301 redirect for new product URL in htaccess


How to create a 301 redirect for new product URL in htaccess

By : Sowmya Karra
Date : December 05 2020, 12:22 PM
Hope this helps I have the following problem. , You can use the following rule :
code :
RewriteEngine on


RewriteCond %{THE_REQUEST} /old-link/\?a1=([^&]+)&b2=([^&]+)&c3=([^&]+)\sHTTP [NC]
RewriteRule ^ /new-link/%1-%2-%3? [L,R]


Share : facebook icon twitter icon
Redirect old products product.php links to home page in .htaccess

Redirect old products product.php links to home page in .htaccess


By : user3472155
Date : March 29 2020, 07:55 AM
Create a 301 redirect in .htaccess for folder to subdomain AND redirect www to non-www

Create a 301 redirect in .htaccess for folder to subdomain AND redirect www to non-www


By : Ashley Nicole Powers
Date : March 29 2020, 07:55 AM
will be helpful for those in need I've searched everywhere and used some examples but they don't meet my specific needs, hence why I'm asking here if anyone can please help? I know the http:: below isn't correct, it's just because I can't post links here. , This is the code you'll need in your .htaccess file:
code :
Options +FollowSymLinks -MultiViews
RewriteEngine on
RewriteBase /

# To redirect http:://www.mysite.co.uk/ to http:://mysite.co.uk/
RewriteCond %{HTTP_HOST} ^www\.(mysite\.co\.uk)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]

# To redirect /mysub/foo to http://mysub.mysite.co.uk/foo
RewriteCond %{HTTP_HOST} ^(www\.)?(mysite\.co\.uk)$ [NC]
RewriteRule ^(mysub)/?(.*)$ http://$1.%2/$2 [R=301,L,NC]
How to create external redirect for below internal redirect using .htaccess

How to create external redirect for below internal redirect using .htaccess


By : Tim
Date : March 29 2020, 07:55 AM
I wish did fix the issue. i have this rule in .htaccess file which is internal redirect can anybody tell me how to make this external redirect using R301 , Add R=301 flag like this:
code :
RewriteRule ^(.*)page/([^/.]+)/?$ $1?page=$2 [L,R=301,QSA,NC]
Htaccess remove query string & redirect to product

Htaccess remove query string & redirect to product


By : PriyaS
Date : March 29 2020, 07:55 AM
This might help you I try to remove/redirect the query string from this link: , Try adding this in the htaccess file in your document root:
code :
RewriteEngine On
RewriteCond %{QUERY_STRING} (^|&)fb_action_ids=
RewriteRule ^/?detail/link- %{REQUEST_URI}? [L,R=301]
Redirect Old Product to new (Opencart) (HTACCESS)

Redirect Old Product to new (Opencart) (HTACCESS)


By : dk1994
Date : March 29 2020, 07:55 AM
wish helps you I want to redirect my old product ID to a new one. , Add this to your .htaccess in your web root /
code :
RewriteEngine on
RewriteBase /

RewriteCond %{QUERY_STRING} (^|.*?&)product_id=50(&.*|$) [NC]
RewriteRule ^(.*)$ $1?%1product_id=80%2 [R=301,L]

RewriteCond %{QUERY_STRING} (^|.*?&)product_id=163(&.*|$) [NC]
RewriteRule ^(.*)$ $1?%1product_id=175%2 [R=301,L]
shadow
Privacy Policy - Terms - Contact Us © soohba.com