May 18th 2012
RT @Snetty: no apology from @Insight_UK either, their customer service is a joke, spend your money elsewhere is my recommendation

May 18th 2012
RT @Snetty: cancelled order with @Insight_UK 2 weeks after being paid in full they demand a letterhead and haven't even ordered from sup ...

May 18th 2012
RT @alanogden: going to introduce @madnexus to proper fish and chips for #fridaylunch @3dpixelnet @snetty

May 14th 2012
all servers are now upgraded to 1Gbit connections.

You are here: Home » FAQ » mod_rewrite

mod_rewrite

Mod_rewrite enables you to do the following:

Enabling mod_rewrite

mod_rewrite is active on all 3DPixel.net accounts. It is not a plesk control panel function that can be enabled. It is wholly and exclusively controlled by the use of .htaccess files.

The code for .htaccess mod_rewrites, before any code MUST be the following:

#Enable mod_rewrite
RewriteEngine On

Some Examples

Redirect a specific IP to another site:

#redirect IP
RewriteCond %{REMOTE_ADDR} ^123.123.123.123$
RewriteRule .* http://someotherwebsite/link.htm [R=301,L]

Remove the index.php from the homepage to make it prettier:

#redirects index.php to /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /index.php HTTP/
RewriteRule ^index.php$ http://www.yoursite.net/ [R=301,L]

Make an Search Engine optimised link:

#make nice-url-here show somepage.php
RewriteRule ^nice-url-here /somepage.php [L]



Tell Someone About This Page