Tuesday, March 29, 2011

Re: Wildcard DNS | Domain | Subdomain

Hi all,
thanks for all your suggestions.

I will talk to my hosting provider to check whether the virtualhost
and other server configurations are correctly done or not.
The following is the htaccess I am using -:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{HTTP_HOST} ^([^.]+)\.?domain\.com [NC]
RewriteCond %1 !^(www)?$ [NC]
RewriteRule ^([^/]*)/?([^/]*)?/?$ index.php?user=%1&url=$1 [QSA,L]
</IfModule>

As I am not good with htaccess I am not sure whether it is correct or
not.

I will be waiting for your valuable comments on the above.
Thanks.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: