Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Do not remove this line or mod_rewrite rules and search engine friendly URLs will stop working
- RewriteEngine On
- RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
- RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
- RewriteCond %{REQUEST_FILENAME} -d [OR]
- RewriteCond %{REQUEST_FILENAME} -f
- RewriteRule ^ - [L]
- RewriteRule ^p/(.+)$ index.php?p=$1 [QSA,L] # For other pages
- RewriteRule ^(.+)$ shortn/index.php?code=$1 [QSA,L] # For shortened URLs
- #It might be this one, note sure if you need a / before shortn
- # RewriteRule ^(.+)$ /shortn/index.php?code=$1 [QSA,L]
Advertisement
Add Comment
Please, Sign In to add comment