SunQuest
           Beginner Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherBeginner Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old June 16th, 2003, 03:07 PM
malc6000 malc6000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Cheltenham, Cotswolds, England
Posts: 6 malc6000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Redirecting users to a script whilst remaining searchable?

Hi, I'm hoping I might get some help with a little problem. I have a script at http://www.rateamate.net/cgi-bin/ez...ezPhotoRate.cgi

What I'm after is user entry instantly into the site script from typing the domain address at www.rateamate.net

It doesn't matter what the address bar shows as long as typing www.rateamate.net takes the user straight to http://www.rateamate.net/cgi-bin/ez...ezPhotoRate.cgi

Natrually I want the site to be visible to search engine spiders/robots.

I'm really struggling with this one and any help would be greatly appreciated.

Thank you,

Malc

Reply With Quote
  #2  
Old June 17th, 2003, 02:44 AM
SilkySmooth's Avatar
SilkySmooth SilkySmooth is offline
Newbie :P
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2001
Location: In the PHP Engine :-)
Posts: 2,880 SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 32 m 23 sec
Reputation Power: 15
Hi,

You can use mod rewrite in htaccess if you are running on an Apache web server, see this page of the manual for more info and search the forums for mod rewrite.

http://httpd.apache.org/docs/mod/mod_rewrite.html

HTH
__________________
---------------------
-- SilkySmooth --
---------------------
Proxy | Little Directory

Reply With Quote
  #3  
Old June 20th, 2003, 06:42 AM
nao's Avatar
nao nao is offline
junior vice president
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Springfield
Posts: 251 nao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
another solution (webserver independent)

Hi malc,

You could also just do a redirect using JavaScript from your index.html page:

Code:
<script language="javascript" type="text/javascript">
<!--
window.setTimeout('window.location=" http://www.rateamate.net/cgi-bin/ez...ezPhotoRate.cgi ";',delay);
// --></script>


delay -> an integer that defines how many milliseconds to delay before redirecting (1 second = 1000 milliseconds)

It's not as good as Silky's method, which is more efficient, but it will work.

Nao

Reply With Quote
  #4  
Old June 21st, 2003, 05:28 AM
malc6000 malc6000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Cheltenham, Cotswolds, England
Posts: 6 malc6000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks for the help, much appreciated.

malc

Reply With Quote
  #5  
Old June 21st, 2003, 08:35 AM
nao's Avatar
nao nao is offline
junior vice president
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2002
Location: Springfield
Posts: 251 nao User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Lightbulb captain planet!

....Malc is in Cheltenham....

....Ade is in Swindon....

....Nao is in North Wales....

....with these forces combined, we become CAPTAIN UK DEVSHED!...


hehehe.

Reply With Quote
  #6  
Old June 23rd, 2003, 01:49 AM
malc6000 malc6000 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Cheltenham, Cotswolds, England
Posts: 6 malc6000 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
How true.

Malc

Reply With Quote
  #7  
Old June 23rd, 2003, 02:10 AM
SilkySmooth's Avatar
SilkySmooth SilkySmooth is offline
Newbie :P
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2001
Location: In the PHP Engine :-)
Posts: 2,880 SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level)SilkySmooth User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 32 m 23 sec
Reputation Power: 15
Ummm well I'm in Swindon UK via Brazil

Reply With Quote
  #8  
Old June 26th, 2003, 08:20 AM
Vodau Vodau is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Location: Brecon
Posts: 20 Vodau User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
alternatively, if its an IIS server, you can use the IIS plug-in to set the default document as something like index.cgi /php /html /whatever you want....

an I'm in Glos (well actually Brecon atm...), but from Glos

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherBeginner Programming > Redirecting users to a script whilst remaining searchable?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway