.htaccess - how to change domain name? -
.htaccess - how to change domain name? -
i have domain name alfared.in.ua/public (zf2),but want alter domain name alfared.in.ua?how this? .htaccess
rewriteengine on rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^.*$ index.php [nc,l] httpd-vhosts.conf
<virtualhost alfared.in.ua:80> documentroot "c:\xampp/htdocs/alfared.in.ua/www/module/application/view/layout/" servername alfared.in.ua setenv application_env "development" <directory "c:/xampp/htdocs/zf2/public"> directoryindex index.php allowoverride order allow,deny allow </directory> </virtualhost>
can seek modify httpd.vhosts.conf to
<virtualhost alfared.in.ua:80> documentroot "c:/xampp/htdocs/zf2/public" servername alfared.in.ua setenv application_env "development" <directory "c:/xampp/htdocs/zf2/public"> directoryindex index.php allowoverride order allow,deny allow </directory> </virtualhost> that should trick. i'm bit confused using 2 different locations in 1 config
.htaccess zend-framework
Comments
Post a Comment