![]() |
Getting mod rewrite to work - please help
Hi all, I have the following .htaccess file:
Code:
<IfModule mod_rewrite.c>/var/www/clients/client2/web7/web/_DEV/virtual_subdom.php?user=xyz (as far as no xyz directory exists in /web) but it doesn't work, I get the ISPC3 404 page. then I tried to modify the apache directives in the website options in ISPC3. These are my current settings: Code:
<LocationMatch "/">Options All AllowOverride All Order allow,deny Allow from all Can someone please help me? I am totally lost. |
1) Where is the .htaccess file? is it var/www/clients/client2/web7/web/.htaccess ?
2) The rwrite conditions are wrong, you missed to mask the dots of the tld. It has to be: RewriteCond %{HTTP_HOST} !^www\.mydomain\.com RewriteCond %{HTTP_HOST} ([^.]+)\.mydomain\.com 3) The rewrite path seems to be wrong, try: RewriteRule ^(.*)$ _DEV/virtual_subdom.php?user=%1 or RewriteRule ^(.*)$ /_DEV/virtual_subdom.php?user=%1 4) Remove the lines: Options All AllowOverride All Order allow,deny Allow from all from the apache directives field. |
Thank you Till, it is working now!
|
| All times are GMT +2. The time now is 05:54. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.