useful .htaccess rewrites

# Site has permanently moved to new domain # to RewriteCond %{HTTP_HOST} ^$ [NC] RewriteRule ^(.*)$$1 [R=301,L] # Page has moved temporarily # to RewriteRule ^old_page.html$ new_page.html [R,NC,L] # SEO / Pretty URLs (no query string) # to RewriteRule ^([A-Za-z0-9-]+)/?$ categories.php?name=$1 [L] # Pretty URLs with pagination (no query string) # to RewriteRule ^section/([A-Za-z0-9-]+)/([0-9]+)/?$ section.php?name=$1&page=$2 [L]

Published by Carlo

I'm an online marketing chap for "igaming" companies, which is a cheesy/fancy word for "online gambling". People bet on the internet, just like they buy stuff from Amazon. Shocking I know.

Leave a comment

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.