Answers for "htaccess redirect specific url to another url"

3

.htaccess redirect to another domain

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^OLDDOMAIN.com$ [NC]
RewriteRule ^(.*)$ http://NEWDOMAIN.com [R=301,L]
Posted by: Guest on December-22-2020
0

htaccess redirect to another domain

RewriteEngine On
RewriteRule ^(.*)$ http://newdomain.com/ [R=301]
Posted by: Guest on October-13-2021

Code answers related to "htaccess redirect specific url to another url"

Browse Popular Code Answers by Language