Quantcast
Channel: LeakedForums
Viewing all articles
Browse latest Browse all 3684

Common .htaccess Redirects

$
0
0
Code:
#301 Redirects for .htaccess

#Redirect a single page:
Redirect 301 /pagename.php http://www.domain.com/pagename.html

#Redirect an entire site:
Redirect 301 / http://www.domain.com/

#Redirect an entire site to a sub folder
Redirect 301 / http://www.domain.com/subfolder/

#Redirect a sub folder to another site
Redirect 301 /subfolder http://www.domain.com/

#This will redirect any file with the .html extension to use the same filename but use the .php extension instead.
RedirectMatch...
Common .htaccess Redirects

Viewing all articles
Browse latest Browse all 3684

Trending Articles