Redirecting webpage requests throug mod_rewrite (new domain/path)

Redirection from http://example.net/subdir/foo.php?bar=test

to http://example.com/subdir2/foo.php?bar=test

.htaccess file:

RewriteEngine On
RewriteRule subdir/(.*) http://www.musicondemand.dk/subdir2/$1 [R]

Dette indlæg blev udgivet i Knowledge Base, Linux, Old Base. Bogmærk permalinket.

Skriv et svar