0
我有域名alfared.in.ua/public(zf2),但我想更改我的域名为alfared.in.ua?我该怎么做?
这是我的.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 All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>