Greenguy's Board


Go Back   Greenguy's Board > General Business Knowledge
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2003-10-29, 05:47 PM   #1
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Question htaccess question

How can I set my .htaccess (I assume that's where it's done...) so that any call for my site always goes to the same url?

To confusing the way I expressed this? - o.k. - let me explain:

I want all hits to go to www.mysite.com/index.shtml
type-in traffic to http://mysite.com without www.
traffic to http://mysite.com/index.shtml - again without www.

(I have already a line
DirectoryIndex index.shtml index.php index.html index.htm which defines the load order...)

Reason: unified referrer url in stats - currently I'm sending traffic out from all different options like http://www.mysite.com/index.shtml, http://mysite.com, http://mysite.com/, http://mysite.com/index.shtml - which in several counters shows as 3 or 4 different referrers and much less traffic in either option than the combined traffic.

Cheers
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2003-10-29, 07:29 PM   #2
dareutwo
You can't disprove anything with evidence that doesn't exist
 
dareutwo's Avatar
 
Join Date: Mar 2003
Location: NW Minnesota - pop 865 +/- 1
Posts: 2,038
Evening George -
Look at the top of your browser.
See that button that says "Search"?
Click that and type in "htaccess"
Should find your answer there.
Otherwise Cleo has a fine page from her webmasters page.

Not being synical.. just can't remember the actual URL's of this... it has been covered here before though.
__________________
This is me Mark's-Links
dareutwo is offline   Reply With Quote
Old 2003-10-29, 08:03 PM   #3
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
Still too easy

Quote:
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=permanent,L]
DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2003-10-29, 08:55 PM   #4
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Quote:
Originally posted by DangerDave
Still too easy
Many thanks - still the best board around
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2003-10-29, 09:06 PM   #5
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Be careful using this on a domain with stuff submitted. If you submit your stuff without the www then it will trigger bots to show a redirect.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-10-29, 09:32 PM   #6
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
Very true Cleo....

as with most htacc redirection thingies... these are not to be applied without planning and forethought..

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Old 2003-10-29, 09:58 PM   #7
GeorgeTH
Don't let a programmer design your front-end pages!
 
GeorgeTH's Avatar
 
Join Date: Aug 2003
Location: currently on the road in CA
Posts: 781
Thanks for the warning!

I wanted to use it for my TGP sites, because only ~50% of the hits arrive at http://www.picxs.com/index.shtml, the remaining 50% are split across 3 other options... Now if somebody submits and uses a counter like Sextracker it might show that I'm sending 600 hits that day, where in fact it could be well over 1,000 once they check further down the list...

Question:
does this help with Google listings, too?

Currently you might find http://picxs.com/ right above http://www.picxs.com/index.shtml in their results - I would think a combined listing might actually boost my position (rather than hurt it).
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2003-10-29, 10:04 PM   #8
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Hmmm, I wonder if it will hurt you since the SEs might see it as redirecting.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2003-10-30, 12:27 AM   #9
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
Quote:
does this help with Google listings, too?
Don't know if "help" is the right word.. but yes it can effect your Google listings..

Rule #1 - always use http://www.domain.com/ when linking, when exchanging links etc, and then ALWAYS use it into the future.

Rule#2 - if you use http://domain.com/ then keep using that syntax.. dont mix them up.

The permanent redirect "should" help refine your pages and SE listings, as google will find http://www.domain.com/ each time.

IF it is done as a permanent redirect, it will not be classed as "redirecting" by the SE's and robots.

DD
__________________
Old Dollars >>>> Now with over 90 Hosted Free Sites <<<<
DangerDave.com.au - Adult Links to Free Porn
DangerDave is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT -4. The time now is 04:18 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc