Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2004-11-04, 04:39 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

...at least I hope it is an .htaccess question:

How can I make sure that all traffic goes to exactly the same URL?

My tgp picxs.com currently gets traffic to/from several options, all displaying the same page:
http://picxs.com/
http://www.picxs.com/
http://www.picxs.com/index.shtml
http://picxs.com/index.shtml

The problem with this is that in many referring stats programs you get also 4 different numbers under 'hits received', one for each of the options.
So how can I make sure that every surfer really loads exactly http://www.picxs.com/index.shtml (even it they typed only http://picxs.com/ into the address bar)?

I have the line
Quote:
DirectoryIndex index.shtml index.html index.htm
in my .htaccess which basically makes certain that every possibility gets to see the same page, but this doesn't mean they have the same URL in their address bar! That's what I want to archive!

I hope I didn't explain this in a too convoluted way - Sorry - didn't know any better - GRIN
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2004-11-04, 04:48 PM   #2
DangerDave
Bonged
 
DangerDave's Avatar
 
Join Date: Mar 2003
Location: BrisVegas, AUSTRALIA
Posts: 4,882
George try this...

http://httpd.apache.org/docs-2.0/mis...guide.html#url

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 2004-11-16, 05:32 PM   #3
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
Sorry, a good week later, after trying to understand the link DD gave me, and asking a friend for help: I'm no step further with this!

When it comes to servers (and Unix) I'm such a - hopeless!
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2004-11-17, 07:05 PM   #4
venturi
No offence Apu, but when they were handing out religions you must have been out taking a whizz
 
Join Date: Apr 2003
Location: An Oasis atop a High Desert Mesa
Posts: 282
Send a message via ICQ to venturi
This may not be the optimal solution for you but you could create mirror pages and use the meta refresh tag...

Code:
<META name="refresh" content="0,http://www.example.com/somepage.html">
venturi is offline   Reply With Quote
Old 2004-11-18, 12:27 AM   #5
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 venturi
This may not be the optimal solution for you but you could create mirror pages and use the meta refresh tag...

Code:
<META name="refresh" content="0,http://www.example.com/somepage.html">
No, No, No!
Meta refreshs get you penalised with search engines...

There is a way with htaccess, the explanation is even in DD's link, just that last time I tried to change mine I messed it up that badly that the server died (loop)...
__________________
Have a nice day!
GeorgeTH is offline   Reply With Quote
Old 2004-11-18, 01:22 AM   #6
mist
Asleep at the switch? I wasn't asleep, I was drunk
 
Join Date: Aug 2003
Location: EU
Posts: 214
Send a message via ICQ to mist
You could add a bunch of lines to your .htaccess file for every URL you want to redirect,
redirect accessed-file URL-to-go-to

could be,
redirect http://picxs.com/ http://www.picxs.com/index.shtml
redirect http://picxs.com/index.shtml http://www.picxs.com/index.shtml

etc.

Mist
mist is offline   Reply With Quote
Old 2004-11-18, 11:27 PM   #7
venturi
No offence Apu, but when they were handing out religions you must have been out taking a whizz
 
Join Date: Apr 2003
Location: An Oasis atop a High Desert Mesa
Posts: 282
Send a message via ICQ to venturi
George, as I clearly said it wasn't likely the optimal solution. I merely expressed it as a possible option.
venturi 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:22 PM.


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