Url CMS使简单Htaccess模块重写不起作用

Url CMS使简单Htaccess模块重写不起作用,url,content-management-system,seo,Url,Content Management System,Seo,我在我的CMS Mad simple 1.7网站上使用Mod_Rewrite启用了“Pretty URL”,它似乎正在工作,301重定向正在工作,大多数重写都在工作。但是,它没有将URL更改为www.domain.com/page-title,而是将其重写为www.domain.com/?page=page title 有人能帮忙吗 # BEGIN Optional settings # Turns off directory browsing # not absolutely essenti

我在我的CMS Mad simple 1.7网站上使用Mod_Rewrite启用了“Pretty URL”,它似乎正在工作,301重定向正在工作,大多数重写都在工作。但是,它没有将URL更改为www.domain.com/page-title,而是将其重写为www.domain.com/?page=page title

有人能帮忙吗

# BEGIN Optional settings

# Turns off directory browsing
# not absolutely essential, but keeps people from snooping around without 
# needing empty index.html files everywhere
Options -Indexes

# Deny access to config.php
# This can be useful if php ever breaks or dies
# Use with caution, this may break other functions of CMSms that use a config.php
# file.  This may also break other programs you have running under your CMSms
# install that use config.php.  You may need to add another .htaccess file to those
# directories to specifically allow config.php.
<Files "config.php">
order allow,deny
deny from all
</Files>

# Sets your 403 error document
# not absolutely essential to have, 
# or you may already have error pages defined elsewhere
ErrorDocument 403 /forbidden403.shtml

# No sense advertising what we are running
ServerSignature Off

# END Optional Settings

# BEGIN CMSMS and Rewrite Rules
# Make sure you have Options FollowSymLinks
# and Allow on
Options +FollowSymLinks

RewriteEngine On

# Might be needed in a subdirectory
RewriteBase /

# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<script>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2}) 
RewriteRule ^.*$ - [F,L] 
# END Filtering

# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
RewriteRule ^index\.(php|htm|html|asp|cfm|shtml|shtm)/?$ / [R=301,L]


RewriteCond %{HTTP_HOST} ^domain.com$
RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
# END CMSMS

# END Rewrite rules
#开始可选设置
#关闭目录浏览
#这不是绝对必要的,但可以防止人们在不知情的情况下四处窥探
#到处都需要空index.html文件
选项-索引
#拒绝访问config.php
#这在php崩溃或消亡时非常有用
#小心使用,这可能会破坏使用config.php的CMSms的其他功能
#文件。这也可能破坏您在CMSms下运行的其他程序
#安装使用config.php的文件。您可能需要将另一个.htaccess文件添加到这些文件中
#专门允许config.php的目录。
命令允许,拒绝
全盘否定
#设置403错误文档
#不是绝对必要的,
#或者您可能已经在别处定义了错误页面
错误文档403/bidden403.shtml
#宣传我们正在经营的东西毫无意义
服务器签名关闭
#结束可选设置
#开始CMSMS并重写规则
#确保您有以下选项ymlinks
#允许
选项+FollowSymLinks
重新启动发动机
#在子目录中可能需要
重写基/
#URL过滤有助于阻止一些黑客尝试
#如果URI包含“http:”
RewriteCond%{QUERY_STRING}http\:[或]
#或者如果URI包含“[”
重写条件%{QUERY_STRING}\[[或]
#或者如果URI包含“]”
重写条件%{QUERY_STRING}\][或]
#或者如果URI包含“”
重写条件%{QUERY\u STRING}(\\\\%3E)[NC,或]
#或者试图通过URL设置PHP全局变量的脚本
重写条件%{QUERY\u STRING}全局(|\[|\%[0-9A-Z]{0,2})[或]
#或者任何试图通过URL修改_请求变量的脚本
重写条件%{QUERY\u STRING}\u请求(|\[|\%[0-9A-Z]{0,2})
重写规则^.*$-[F,L]
#端部滤波
#CMSMS重写
#在config.php中将假设mod_rewrite设置为true并清除CMSMS缓存
RewriteCond%{REQUEST_FILENAME}!-f[NC]
重写COND%{REQUEST_FILENAME}!-d[NC]
重写规则^(+)$index.php?页面=$1[QSA]
重写规则^索引\(php | htm | html | asp | cfm | shtml | shtm)/?$/[R=301,L]
重写cond%{HTTP_HOST}^domain.com$
重写规则(.*)http://www.domain.com/$1[R=301,L]
#结束CMSMS
#结束重写规则

CMSMS 1.7是一个非常旧的版本-它不受支持,您应该尽快更新


在CMSMS文档文件夹中,您会发现一个已工作的.htaccess版本

我有一个自定义主题,我担心如果我更新,该主题将不再兼容。