Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

SEO Tycoon


You are currently viewing our SEO Tycoon as a guest. Please register to participate.
Login



Freelance Jobs

Reply
sitename.com/section/category/ to www.sitename.com/section/category/
Old 10-30-2007, 07:04 PM sitename.com/section/category/ to www.sitename.com/section/category/
trichnosis's Avatar
Webmaster Talker

Posts: 511
Trades: 0
Hi;

I need help about my .htaccess.

Some sites are giving me link with sitename.com/section/category/ link but i'm using www.sitename.com/section/category/


If want to create a permanent redirect from sitename.com/section/category/ to www.sitename.com/section/category/ with my .htacess.

If somebody gives me link without www, I want to add www to my urls.

Thanks for your comments.
__________________
....
trichnosis is offline
Reply With Quote
View Public Profile Visit trichnosis's homepage!
 
 
Register now for full access!
Old 10-30-2007, 07:17 PM Re: sitename.com/section/category/ to www.sitename.com/section/category/
Defies a Status

Posts: 3,420
Trades: 0
I believe this is the code you need:

Quote:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^yourwebsite\.com$ [NC]
RewriteRule ^(.*)$ http://www.yourwebsite.com/$1 [R=301,L]
For the category etc. part, then you'd add the rest of the URL needed (i.e. section/category/)
CSS4Life is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to sitename.com/section/category/ to www.sitename.com/section/category/
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.79898 seconds with 12 queries