Monday, February 15, 2016

Re: Wildcard DNS | Domain | Subdomain

Hi swimwithabhra,

     Can you help me to implement this with cakephp 3.x

On Wednesday, March 30, 2011 at 11:57:35 AM UTC+5:30, swimwithabhra wrote:
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.

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at https://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: