mothh9

Untitled

Feb 25th, 2016
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. # Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
  2. RewriteEngine On
  3.  
  4. RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
  5. RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  6.  
  7. RewriteCond %{REQUEST_FILENAME} -d [OR]
  8. RewriteCond %{REQUEST_FILENAME} -f
  9. RewriteRule ^ - [L]
  10.  
  11. RewriteRule ^p/(.+)$ index.php?p=$1 [QSA,L] # For other pages
  12. RewriteRule ^(.+)$ shortn/index.php?code=$1 [QSA,L] # For shortened URLs
  13. #It might be this one, note sure if you need a / before shortn
  14. # RewriteRule ^(.+)$ /shortn/index.php?code=$1 [QSA,L]
Advertisement
Add Comment
Please, Sign In to add comment