所以基本上我已经将一个站点从原始顶级域移动到我站点中的一个文件夹,但是由于 .htaccess 不会自动重定向到 /en/,所以页面是空白的
我尝试将我的域 julianjosephs.com 放在现有域之前,但它不起作用。不知道现在该怎么办。
原来的:http://morganstachs.com/en/
发展:http://julianjosephs.com/morganstachs.com/
.htaccess 文件内容
# -- LG .htaccess Generator Start --
# .htaccess generated by LG .htaccess Generator v1.0.0
# http://leevigraham.com/cms-customisation/expressionengine/addon/lg-htaccess-generator/
# secure .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Dont list files in index pages
IndexIgnore *
# EE 404 page for missing pages
ErrorDocument 404 /index.php?/
# Simple 404 for missing files
<FilesMatch "(\.jpe?g|gif|png|bmp)$">
ErrorDocument 404 "File Not Found"
</FilesMatch>
RewriteEngine On
RewriteBase /
# remove the www
RewriteCond %{HTTP_HOST} ^(www\.$) [NC]
RewriteRule ^ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Add a trailing slash to paths without an extension
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
RewriteRule ^(.*)$ $1/ [L,R=301]
# Remove index.php
# Uses the "include method"
# http://expressionengine.com/wiki/Remove_index.php_From_URLs/#Include_List_Method
RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5})$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} ^/(_includes|site|landing_pages|listings_shortcut|offers|scripts|xml|en|sp|fr|members|P[0-9]{2,8}) [NC]
RewriteRule ^(.*)$ /index.php?/$1 [L]
# Remove IE image toolbar
<FilesMatch "\.(html|htm|php)$">
Header set imagetoolbar "no"
</FilesMatch>
# -- LG .htaccess Generator End --
RewriteCond %{HTTP_HOST} ^admin\.morganstachs\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.admin\.morganstachs\.com$
RewriteRule ^/?$ "http\:\/\/morganstachs\.com\:2082" [R=301,L]