Created
February 22, 2014 11:22
-
-
Save zsmynl/9152308 to your computer and use it in GitHub Desktop.
记一次htaccess伪静态
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteRule ^discover$ index.php?do=discover | |
RewriteRule ^content/([a-zA-Z0-9_-]+)$ index.php?do=content&workid=$1 | |
RewriteRule ^discover/([a-zA-Z0-9_-]+)$ index.php?do=discover&id=$1 | |
RewriteRule ^content/([a-zA-Z0-9_-]+)/id/([a-zA-Z0-9_-]+)$ index.php?do=content&workid=$1&contentId=$2 | |
RewriteRule ^home/([a-zA-Z0-9_-]+)$ index.php?do=home&id=$1 | |
RewriteRule ^works/([a-zA-Z0-9_-]+)$ index.php?do=home&act=works&id=$1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment