|
|
shopex安裝在www.abc.com/cdf
后台"静态URL"不能打开,只自己在子目上加上".htaccess",
abc是根目录,cdf是子目录,访问名是www.cdf.com
问题是
1)下面的htaccess有否写错?
2)如何知道URL rewrite是否打开?
3)访问www.cdf.com时显示www.cdf.com/?,有"?"是否代表URL rewrite还未打开?
请帮忙!谢谢!
内容如下:
#$Id: root.htaccess 17348 2008-12-23 05:53:22Z flaboy $
AddEncoding gzip .jgz
AddType "text/javascript;charset=UTF-8" .jgz
AddEncoding gzip .zcss
AddType "text/css;charset=UTF-8" .zcss
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.abc.com/cdf/ [NC]
RewriteRule ^(.*)$ http://www.cdf.com/$1 [L,R=301]
#设置RewriteBase的值为你的商店目录地址
RewriteBase /abc.com/cdf
RewriteRule ^themes/.*\.(html|xml)$ / [F]
RewriteRule ^archiver/([a-z0-9\-]+\.html)$ archiver/index.php?$1
RewriteRule ^forum-([0-9]+)-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+)\.html$ viewthread.php?tid=$1&extra=page\%3D$4&page= $2
RewriteRule ^profile-(username|uid)-(.*)\.html$ viewpro.php?$1=$2
RewriteCond%{REQUEST_FILENAME}\.(html|xml|json|htm|php|php2|php3|php4|php5|phtml|pwml|inc|asp|aspx|ascx|jsp|cfm|cfc|pl|cgi|shtml|shtm|phtm)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
AddHandler x-httpd-php .html .htm |
|