When you host a web site, many web hosting providers allow your web site access using multiple urls like yourdomain.com, www.yourdomain.com. If you have a dedicated IP address, your web site become available on the IP address also. It is bad for SEO to have a site available in multiple URLs. If search engine index […]
Redirect a folder to another
To redirect a folder to another using .htaccess, create
1 |
RedirectMatch 301 ^/OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 |
Or
1 2 |
RewriteEngine On RewriteRule ^OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 [R=301,NC,L] |
Or
1 |
Redirect 301 /OLD_FOLDER /NEW_FOLDER |
if new folder is on another domain, you can use https://new-domain.com/OLD_FOLDER See Redirect […]
Redirect
HTTP 301 Redirect using PHP Redirect a site to HTTPS using PHP Redirect HTTP to HTTPS when using Reverse Proxy Redirect site from www to non-www Redirect site to HTTPS excluding a folder Redirect a folder to another Fix Canonical URL using .htaccess Redirect a site to HTTPS using .htaccess file
1 2 3 |
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE] |
Redirect a web […]