Xin hỏi về url rewrite trong joomla 1.5 file htacess - Joomla! Forum - community, help and support
mình có dùng cái duong dẫn thân thiện cho web này
nhưng link này thì ok
http://ranbuildtrandat.com/ranbuild/gioi-thieu.html
còn link menu cấp dưới cái thì lỗi giao diện anh em click vào link xem dùm
http://ranbuildtrandat.com/ranbuild/gia ... la-gi.html
web mình đặt trong thư mục ranbuild
file htacess của mình nè
sửa làm sao xin chỉ dùm cảm ơn anh em nhiều
nhưng link này thì ok
http://ranbuildtrandat.com/ranbuild/gioi-thieu.html
còn link menu cấp dưới cái thì lỗi giao diện anh em click vào link xem dùm
http://ranbuildtrandat.com/ranbuild/gia ... la-gi.html
web mình đặt trong thư mục ranbuild
file htacess của mình nè
code: select all
##
# @version $id: htaccess.txt 14401 2010-01-26 14:10:00z louis $
# @package joomla
# @copyright copyright (c) 2005 - 2010 open source matters. rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html gnu/gpl
# joomla! free software
##
#####################################################
# read if choose use file
#
# line below section: 'options +followsymlinks' may cause problems
# server configurations. required use of mod_rewrite, may already
# set server administrator in way dissallows changing in
# .htaccess file. if using causes server error out, comment out (add # to
# beginning of line), reload site in browser , test sef url's. if work,
# has been set server administrator , not need set here.
#
#####################################################
## can commented out if causes errors, see notes above.
options +followsymlinks
#
# mod_rewrite in use
rewriteengine on
########## begin - rewrite rules block out common exploits
## if experience problems on site block out operations listed below
## attempts block common type of exploit `attempts` joomla!
#
## deny access extension xml files (uncomment out activate)
#<files ~ "\.xml$">
#order allow,deny
#deny all
#satisfy all
#</files>
## end of deny access extension xml files
rewritecond %{query_string} mosconfig_[a-za-z_]{1,21}(=|\%3d) [or]
# block out script trying base64_encode crap send via url
rewritecond %{query_string} base64_encode.*\(.*\) [or]
# block out script includes <script> tag in url
rewritecond %{query_string} (\<|%3c).*script.*(\>|%3e) [nc,or]
# block out script trying set php globals variable via url
rewritecond %{query_string} globals(=|\[|\%[0-9a-z]{0,2}) [or]
# block out script trying modify _request variable via url
rewritecond %{query_string} _request(=|\[|\%[0-9a-z]{0,2})
# send blocked request homepage 403 forbidden error!
rewriterule ^(.*)$ index.php [f,l]
#
########## end - rewrite rules block out common exploits
# uncomment following line if webserver's url
# not directly related physical file paths.
# update joomla! directory (just / root)
rewritebase /ranbuild/
########## 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
sửa làm sao xin chỉ dùm cảm ơn anh em nhiều
bạn làm theo code dưới đây là ổn thôi:
code: select all
options +followsymlinks
rewriteengine on
# index.php /
rewritecond %{the_request} ^[a-z]{3,9}\ /.*index\.php\ http/
rewriterule ^(.*)index\.php$ /$1 [r=301,l]
Comments
Post a Comment