![]() |
|
|
#1 |
|
InfernoHost Staff Member
|
It is very easy to make sure that a user uses http://www.domain.com instead of just http://domain.com with a simple piece of PHP code placed at the top of every page.
PHP Code:
Code:
RewriteEngine On
Options +FollowSymlinks
RewriteCond %{HTTP_HOST} ^domain\.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [R=permanent,L]
__________________
James Collins InfernoHost Manager |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|