Forum Moderators: phranque
Welcome to WebmasterWorld!
What does your server error log say? That's the first place to check.
The most likely cause is that you need to add:
Options +FollowSymLinks
As written, you code will redirect *all* requests, including those for images, scripts, CSS files, etc. to the default index file of /somefolder. If you want to preserve the requested filename, then your code should look like this:
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^abc\.domain\.net
RewriteRule (.*) /somefolder/$1 [L]
Jim
Thank you Jim for your instant reply :-)
FollowSymLinks is on.
access_log say:
"GET / HTTP/1.1" 500 - "-"
error_log say:
mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
I don't understand this. I have several rewrites for other domains, I tried to remove all of them and only include the subdomain rewrite mentioned. Still the same error.
When I have the other rewrites they work fine.
Best Regards,
-chip
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^abc\.domain\.net
RewriteCond %{REQUEST_URI} !^/somefolder/
RewriteRule (.*) /somefolder/$1 [L]
Jim
[edited by: jdMorgan at 4:27 am (utc) on Feb. 27, 2005]