云服务器常用网站伪静态规则

Discuz X3.2
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^(.)$
RewriteRule ^topic-(.+).html$ portal.php?mod=topic&topic=KaTeX parse error: Expected 'EOF', got '&' at position 2: 1&̲%1 RewriteCond …
RewriteRule ^article-([0-9]+)-([0-9]+).html$ portal.php?mod=view&aid=$1&page=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^forum-(\w+)-([0-9]+).html$ forum.php?mod=forumdisplay&fid=$1&page=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^thread-([0-9]+)-([0-9]+)-([0-9]+).html$ forum.php?mod=viewthread&tid=$1&extra=page%3D$3&page=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^group-([0-9]+)-([0-9]+).html$ forum.php?mod=group&fid=$1&page=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^space-(username|uid)-(.+).html$ home.php?mod=space&$1=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^blog-([0-9]+)-([0-9]+).html$ home.php?mod=space&uid=$1&do=blog&id=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^archiver/(fid|tid)-([0-9]+).html$ archiver/index.php?action=$1&value=KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 RewriteCond …
RewriteRule ^([a-z]+[a-z0-9_]
)-([a-z0-9_-]+).html$ plugin.php?id=$1:KaTeX parse error: Expected 'EOF', got '&' at position 2: 2&̲%1 **Wordpress*… - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
Typecho
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
来源:https://www.niaoyun.com/docs/16453.html/?utm_source=c-c

上一篇:vue 之 vuex


下一篇:Linux 巡检脚本大全