Hio, this is my problema,
I need to redirect
test.domain.com
to
www.domain.com/test.php?azione=$1&variabile=$1
by mod rewrite
Can you help me?
Thanks for all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?test\.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/test.php?azione=$1&variabile=$1 [R,L]
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?test\.example\.com$ [NC]
RewriteRule ^(.*)$ /test.php?azione=$1&variabile=$1 [QSA,L]
test.php and .htaccess are in folder:
/var/www/vhosts/example.com/httpdocs
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?test\.example\.com$ [NC]
RewriteRule ^$ /test.php [QSA,L]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{HTTP_HOST} ^(www\.)?test\.example\.com$ [NC]
RewriteRule ^(.+)$ /test.php?action=viewcategory&articlecategory=$1 [QSA,L]
What is test.example.com's document root? (With no mod_rewrite, what page do you see when you go to test.example.com?)
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 6 guests