View Single Post
Old 04-22-2008, 01:35 AM   · #18
trsaso
Senior Member
 
trsaso's Avatar
 
Name: Saso
Location: Little place around the World
Trader Rating: (39)
Join Date: Aug 2006
Posts: 1,214
NP$: 125.75 (Donate)
trsaso is a name known to alltrsaso is a name known to alltrsaso is a name known to alltrsaso is a name known to alltrsaso is a name known to alltrsaso is a name known to all
Originally Posted by -Nick-
Redirecting your sitename.com to www.sitename.com with help of .htaccess

Create a .htaccess file or add the code to an existing one on your server.

If you are creating a new .htaccess file make sure it is in the root folder of the site.

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^sitename.com [nc]
rewriterule ^(.*)$ http://www.sitename.com/$1 [r=301,nc]

Where sitename.com and www.sitename.com will be replaced by your original details of the site itself.

This will only work on apache servers with mod_rewrite enabled.



Tested on my site and working wery well , rep+
Thanks


Please register or log-in into NamePros to hide ads
trsaso is offline   Reply With Quote
Site Sponsors
Get Your Site Linked at LinkedKeywords.com free webhosting Thousand Dollar Profits
Advertise your business at NamePros
All times are GMT -7. The time now is 08:32 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.