WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2005, 11:01 AM
bjbtexas's Avatar
bjbtexas bjbtexas is offline
WebProWorld Pro
 

Join Date: Feb 2004
Location: The Woodlands
Posts: 104
bjbtexas RepRank 0
Default Canonical Hostnames Mod Rewrite

You see sites that redirect the highlandergolf.com to www.highlandergolf.com all them time. I have found how to do it, but can't get it to work for my site. Any ideas as to why?

Code:
RewriteCond %{HTTP_HOST}!^www\.highlandergolf\.com [NC]
RewriteCond %{HTTP_HOST}!^$
RewriteRule ^/(.*) http://www.highlandergolf.com/$1 [L,R=301]
__________________
B.J.Baker
Adventure Travel Adventure Sports
Industrial Supply
Reply With Quote
  #2 (permalink)  
Old 04-22-2005, 04:25 PM
m4K's Avatar
m4K m4K is offline
WebProWorld Pro
 

Join Date: Dec 2003
Location: Scarborough, United Kingdom
Posts: 122
m4K RepRank -1
Default

Im little confused to your intention, if your trying to redirect then you can do this a number of ways;

- PHP (header location)
- httaccess
- javascript

If im on the wrong track then i apologise if not and you need more advise, let me know and i can explain better.

- Mark
__________________
Make EASY money right now! eMeeting Dating Software Affiliate ProgramEarn 20% per sale! - http://www.datingscripts.co.uk/datin...ite-affiliate/
Reply With Quote
  #3 (permalink)  
Old 04-22-2005, 04:55 PM
bjbtexas's Avatar
bjbtexas bjbtexas is offline
WebProWorld Pro
 

Join Date: Feb 2004
Location: The Woodlands
Posts: 104
bjbtexas RepRank 0
Default mod rewrite

Sorry, I should have specified that this is a .htaccess mod rewrite.
__________________
B.J.Baker
Adventure Travel Adventure Sports
Industrial Supply
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: canonical, hostnames, mod, rewrite



Thread Tools
Display Modes

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

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



Search Engine Friendly URLs by vBSEO 3.0.0