SunQuest
           Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

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:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old February 27th, 2001, 03:46 PM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation

can you rewrite a URL for whatever.com/any/any.html to whatever.com

So whatever page someone is viewing, in their address bar it will display whatever.com

any help would be great!!

Thanks

Reply With Quote
  #2  
Old February 27th, 2001, 08:40 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
>> in their address bar it will display whatever.com

I assumed you are not talking about frame page, that can be done using Proxy -> http://httpd.apache.org/docs/mod/mod_proxy.html

>> can you rewrite a URL for whatever.com/any/any.html to whatever.com

A more appropriate way is to display http://www.whatever.com/page.php?path=xx&page=yy

Reply With Quote
  #3  
Old February 27th, 2001, 10:38 PM
ericparker ericparker is offline
Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 27 ericparker User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
re : rewrite

can you rewrite a URL for whatever.com/any/any.html to whatever.com

So whatever page someone is viewing, in their address bar it will display whatever.com

I do not want the current page
ex: whatever.com/any/any.html to be displayed in the address bar. I want it to remain whatever.com no matter what page they are viewing. Hope fully without using frames.

Site is on a unix box with apache version 1.3. All my pages are either html or cgi.

I thought you could do this using mod_rewrite. Please let me know if you know of any good resources. I have looked on apache.org. Maybe I'm just missing it.

Thanks for any help

Reply With Quote
  #4  
Old February 28th, 2001, 06:01 AM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
As I said, start here -> http://httpd.apache.org/docs/mod/mod_proxy.html

AFAIK, you can't use mod_rewrite to rewrite the URL of http://www.whatever.com/ and (internally redirect) to the appropriate page. However, you can do it with http://www.whatever.com/x?1 (with query string) or http://www.whatever.com/x/1/. That said, there must be at least some relative URL (string or path), not the domain URL itself.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > rewrite url


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