信智网络

首页 > 网站建设 > Joomla+Virtuemart建站 > joomla url 静态化

 

joomla url 静态化

外贸建站 Joomla+Virtuemart建站 743

关于joomla url 静态化的配置说明:
全局设置开启搜索引擎友好链接 3个
一些参考:

你如果是安装在ABC文件夹下,记得把.htaccess中的下列代码改下:
RewriteBase /(去掉#)
RewriteCond %{REQUEST_URI} !^/ABC/index.php

joomla默认的是:
# RewriteBase /
RewriteCond %{REQUEST_URI} !^/index.php

二、进入joomla后台开启相应的选项,一共有3处:
site-->global configration-->SEO Settings
3个都选择成yes

 

另外这是本站的 .htaccess配置 经过测试是成功的, 另外配置完毕以后请清除所有的缓存就可以了!


Options +FollowSymLinks
RewriteEngine On


#<Files ~ "\.xml$">
#Order allow,deny
#Deny from all
#Satisfy all
#</Files>


RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]

 

RewriteBase /


########## Begin - Joomla! core SEF Section
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#
########## End - Joomla! core SEF Section

本站将测试并反馈结果!




文章评论

 
E-mail:
内容: