|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
>> 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 |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > rewrite url |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|