GIDForums  

Go Back   GIDForums > Web Hosting Forums > Apache Web Server Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 09-Dec-2003, 23:47
Maccaday Maccaday is offline
New Member
 
Join Date: Dec 2003
Posts: 1
Maccaday is an unknown quantity at this point
Question

Redirect multiple URLs to one script, masking true URL


Hi,

I am looking for a way to have a website that seems to have a directory structure with regards the URLs, but is in fact just one script that generates pages from a database. The pages that are generated will be partly based on the URL, such that the name of the 'directory(ies)' provides some search criteria.

e.g. (*)
www.mydomain.com and
www.mydomain.com

are rewritten as (**)
www.mydomain.com and
www.mydomain.com

respectively. However, I need the URLs that are displayed in the browser to be those shown as in (*).

I know that the mod_rewrite can do the conversion from (*) to (**) (i.e. the inward-bound rewrites), but is it possible still display them as the original URLs (i.e. to do an outward-bound rewrite) as well.

Also, if I were to include other information, such as the language,

e.g.
www.mydomain.com

is this going to cause problems when translating the URL into

www.mydomain.com

and (hopefully) back again (to hide the true URL).

I don't need to know how this needs to be done (yet), I just need to know if it is possible. If it is possible, then can it be done purely with mod_rewrite, or possibly mod_proxy, or would I need to have some kind of external script, possibly written in cgi or perl.

Thanks for any assistance.
  #2  
Old 10-Dec-2003, 08:34
cs2 cs2 is offline
Member
 
Join Date: May 2003
Location: California
Posts: 107
cs2 will become famous soon enough
No, mod_rewrite will not do what you want. Since it "rewrites" the parsing rules, you would be limited to accessing via the rewrite path exclusively.

PHP can do what you want though. Many good examples/tutorials can be found here:
http://www.google.com/search?hl=en&q...iendly+URLs%22
__________________
The Whole Internet, LLC
Visit our Homepage, -or-
use our online CSS Editor
 
 

Recent GIDBlogLast Week of IA Training by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Customising SMS sending script via e-mail gateway for multiple users jrobbio MySQL / PHP Forum 4 29-Sep-2003 12:49

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 22:44.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.