Answer the question
In order to leave comments, you need to log in
.htaccess content for dynamic subdomain
In general, on the local machine there is a develop/
domain
Inside lies CakePHP. The site is working, everything is ok. It was necessary to make dynamic subdomains (http://username.develop === develop/user/username )
ServerAlias *.develop
.htaccess is registered in the apache settings in the develop root:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.+)\.develop/ [NC]
RewriteRule (.+) http://develop/user/%1 [L,QSA]
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
- not my lines. The webpage at username.develop/ might be temporarily down or it may have moved permanently to a new web address.
Error code: ERR_NAME_RESOLUTION_FAILED
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question