Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. http://cms.dev/article.php?post_id=6
  2.  
  3. http://cms.dev/article/6/
  4.  
  5. RewriteEngine On
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteCond %{REQUEST_FILENAME} !-d
  8. RewriteRule ^([^.]+)$ $1.php [NC,L]
  9.  
  10. RewriteEngine On
  11.  
  12. RewriteCond %{REQUEST_FILENAME} !-d
  13. RewriteCond %{DOCUMENT_ROOT}/$1.php -f [NC]
  14. RewriteRule ^([^/]+)/([0-9]+)/?$ /$1.php?post_id=$2 [L,QSA]
  15.  
  16. RewriteCond %{REQUEST_FILENAME} !-d
  17. RewriteCond %{DOCUMENT_ROOT}/$1.php -f [NC]
  18. RewriteRule ^(.+?)/?$ /$1.php [L]
  19.  
  20. RewriteEngine on
  21. RewriteRule ^article/([0-9]+)$ article.php?post_id=$1
  22. RewriteRule ^article/([0-9]+)/$ article.php?post_id=$1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement