Hi guys, I'm looking for to catch-all the subdomain and redirect to the main website. Example: I have got this domain: http://www.mydomain.tld. I would like create thousand subdomains by .htaccess with the username registered on my web portal. So if a user register this username (e.g. foo) the .htaccess must allow this kind of link: http://foo.mydomain.tld If a user type http://www.mydomain.tld the user will see the main site. If the user type http://foo.mydomain.tld, the user will see his page. I will redirect the user by $_SERVER[''] variables. If a subdomain has been registered previously the .htaccess DOESN'T override the forwarding. How can I solve this problem? I'm looked for this problem in Google and I have found this link but it doesn't works with ispconfig: http://www.modwest.com/help/kb7-227.html Thanks
Did you get any errors? Also, are there any errors in Apache's error log? Did you take a look at the URL rewriting guide? http://httpd.apache.org/docs/2.0/misc/rewriteguide.html
First of all the webpage disappears and a new page with this message appears. Code: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request. In the error log appears: Code: [Thu Aug 23 20:28:57 2007] [error] [client 79.9.100.64] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Thu Aug 23 20:28:57 2007] [error] [client 79.9.100.64] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Thu Aug 23 20:28:58 2007] [error] [client 79.9.100.64] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. [Thu Aug 23 20:28:58 2007] [error] [client 79.9.100.64] Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace. I have see URL rewriting guide too but I don't resolve this problem issue. thanks
The error means that you have some kind of loop (like you're redirecting sub.domain.com to www.domain.com which then redirects to sub.domain.com and so forth...).