Return to Snippet

Revision: 44012
at April 5, 2011 01:37 by marzsman


Updated Code
### REWRITE DEFAULTS ###
RewriteEngine On
RewriteBase /

## FORCE WWW ##
RewriteCond %{HTTP_HOST} ^url\.com$ [NC]
RewriteRule ^(.*)$ http://www.url.com/$1 [L,R=301]

## REMOVE index.php ##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Revision: 44011
at April 5, 2011 01:26 by marzsman


Initial Code
### REWRITE DEFAULTS ###
RewriteEngine On
RewriteBase /

## FORCE WWW ##
RewriteCond %{HTTP_HOST} ^hoaxland\.be$ [NC]
RewriteRule ^(.*)$ http://www.hoaxland.be/$1 [L,R=301]

## REMOVE index.php ##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

Initial URL

                                

Initial Description
Some url rewriting snippets

Initial Title
htaccess snippets

Initial Tags
htaccess

Initial Language
Apache