我在我的主机上配置了2个子域。 在一个drupal安装,它工作正常。 http://drup.highlander.ge/ 在另一个我只放html文件和重定向到子域不起作用 austral.highlander.ge转到http://www.georgia-tours.eu/austral/
(www.georgia-tours.eu被重定向到htaccess的highlander.ge)
在htaccess中,我没有做任何事情。实际上没有drupal做过。只有主域名的wordpress记录。
如何让它发挥作用?
这是htaccess:
DirectoryIndex index.html index.shtml index.xhtml index.wml index.perl index.pl index.plx index.ppl index.cgi index.jsp index.js index.jp index.php4 index.php3 index.php index.phtml index.htm home.htm default.htm index.fcgi default.html
# DO NOT REMOVE THIS LINE AND THE LINES BELOW REDIRECTID:qPNG5C
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^georgia-tours.eu$
RewriteRule ^(.*)$ http://www.georgia-tours.eu/$1 [NC,R=301,L]
RewriteCond %{HTTP_HOST} highlander.ge$
RewriteRule ^(.*)$ http://www.georgia-tours.eu/$1 [NC,R=301,L]
Redirect 301 /ru/ru http://www.georgia-tours.eu/ru/
Redirect 301 /tours/ http://www.georgia-tours.eu/category/tours/
Redirect 301 /ru/tours/ http://www.georgia-tours.eu/ru/category/tours/
Redirect 301 /uk/ http://www.georgia-tours.eu/ru/
Redirect 301 /flights-from-tbilisi-to-mestia/ http://www.georgia-tours.eu/travel-forum/topic/tbilisi-mestia-flights/
Redirect 301 /ru/flights-from-tbilisi-to-mestia/ http://www.georgia-tours.eu/ru/travel-forum/topic/tbilisi-mestia-flights/
Redirect 301 /tours/winter-tours/ http://www.georgia-tours.eu/category/tours/wintertours/
Redirect 301 /horse-tours/ http://www.georgia-tours.eu/category/tours/horse-tours/
Redirect 301 /ru/horse-tours/ http://www.georgia-tours.eu/ru/category/tours/horse-tours/
Redirect 301 /ru/about-georgia/attractions-of-georgia/ http://www.georgia-tours.eu/ru/category/places-of-interest/
Redirect 301 /about-georgia/attractions-of-georgia/ http://www.georgia-tours.eu/category/places-of-interest/
RewriteRule ^mail$ http://gmail.com/a/highlander.ge [R=301,L]
# Force Trailing Slash
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)([^/])$ /$1$2/ [L,R=301]
Header set X-UA-Compatible "IE=Edge,chrome=1"
## EXPIRES CACHING ##
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType text/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 2 days"
## EXPIRES CACHING ##
# DO NOT REMOVE THIS LINE AND THE LINES ABOVE qPNG5C:REDIRECTID
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
## EXPIRES CACHING ##
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/js "access plus 1 month"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/png "access plus 1 year"
ExpiresByType text/css "access plus 1 month"
ExpiresByType application/pdf "access plus 1 month"
ExpiresByType text/x-javascript "access plus 1 month"
ExpiresByType application/x-shockwave-flash "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresDefault "access plus 2 days"
</IfModule>
## EXPIRES CACHING ##
<ifModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html text/xml text/css text/plain
AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript application/json
</ifModule>