问:在空间中,如何网址改成伪静态!
这个网站伪静态代码
http://www.aotugz.com/doyo.php?c=a_sys&a=rewrite&article={article}/{file}{page}.html&article_type={article}/{type}/{tid}-{page}.html&product={product}/{file}{page}.html&product_type={product}/{type}/{tid}-{page}.html&message_type={message}/{type}/{tid}-{page}.html&special={special}/{sid}-{page}.html&labelcus_custom={file}.html,如何把网址改成伪静态
答:您好,空间是支持伪静态的,请核实下您的程序是否支持,另外请提供下具体的伪静态规则,我司可以协助部署,非常感谢您长期对我司的支持!
问:如何查看程序是否支持
伪静态规则
Apache Web Server(独立主机用户)
<IfModule mod_rewrite.c>
Apache Web Server(虚拟主机用户)
# 将 RewriteEngine 模式打开
IIS Web Server(独立主机用户)
# 将 RewriteEngine 模式打开
IIS7 Web Server(独立主机用户)
<rewrite>
Nginx Web Server
rewrite ^([^\\.]*)/article/(\\w )([0-9] )\\.html$ $1/index.php?c=article&file=$2&page=$3 last;
rewrite ^([^\\.]*)/article/type/([0-9] )-([0-9] )\\.html$ $1/index.php?c=article&a=type&tid=$2&page=$3 last;
rewrite ^([^\\.]*)/product/(\\w )([0-9] )\\.html$ $1/index.php?c=product&file=$2&page=$3 last;
rewrite ^([^\\.]*)/product/type/([0-9] )-([0-9] )\\.html$ $1/index.php?c=product&a=type&tid=$2&page=$3 last;
rewrite ^([^\\.]*)/message/type/([0-9] )-([0-9] )\\.html$ $1/index.php?c=message&a=type&tid=$2&page=$3 last;
rewrite ^([^\\.]*)/special/([0-9] )-([0-9] )\\.html$ $1/index.php?c=special&sid=$2&page=$3 last;
rewrite ^([^\\.]*)/(\\w )\\.html$ $1/index.php?file=$2 last;
if (!-e $request_filename) {
return 404;
}
问:您好,您是iis环境已经帮您部署了规则,目前您在网站后台启用伪静态功能后再测试一下,非常感谢您长期对我司的支持!
问:但开启伪静态后,网页错位
问:您好,检查您已经取消了伪静态功能,请先开启,我司调试一下,非常感谢您长期对我司的支持!
问:已开启
问:您好,请检查下您的伪静态是否设置有问题,您网站加载调用多了一层tjcms目录。您的这些规则中也没有涉及到图片样式的处理,我司可以尝试收费100元帮您检查调试, 如果需要我司尝试调试,【站点设置 -> 配置伪静态/301跳转/自定义404错误】 请充值以后重新选择这个工单分类提交,并提供网站的后台账号密码以及说明设置步骤,非常感谢您长期对我司的支持!