![]() |
|
#1
|
|||
|
|||
Redirect multiple URLs to one script, masking true URLHi,
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
|
|||
|
|||
|
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 |
Recent GIDBlog
Last Week of IA Training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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