![]() |
|
#1
|
|||
|
|||
Mod rewite to disguise rootHi guys,
I know that you can rewrite individual file paths to make them seo but has anyone ever used it to disguise the root forlder. I am wondering is it possible to create custom parked pages with their own root folder. Say you have 3 domains www.1.com www.2.net www.3.org and the first domain is hosted and the other 2 just pointed and parked in the first domain. Is it possible to get the www.1.com in the file path rewritten to www.3.org?? Or does rewrite only work on files and folders inside the root folder. Is it possible to rewrite the root folder?? |
|
#2
|
||||
|
||||
|
Maybe you have not explained your issue well but from what I understand reading your message; yes, it's quite possible to do what you want to do.
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
|||
|
|||
Mod rewrite to disguise root folderQuote:
Hi JdS, I looked at the apache home site, the nearest thing I could find was to have the referring URL point to a sub folder and then rename the path but I haven't tested it yet. As I don't understand how mod rewrite actually works I was looking for a ready made example. I should explain that I have the same name registered on three top level domains and that I want to have them all point to the same index page and use http_refer to see which page header and logo to use xxx.com to xxx.co.uk or xxx.biz. Also I'm a cheapskate |
|
#4
|
||||
|
||||
|
I still have to ask you for some details. Let's assume that the domain name is EXAMPLE.
Say you have the 3; i.e. example.com | example.co.uk | example.biz How are these set up on your web server? Is something like this in place? Code:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
|||
|
|||
more details on my setupHi JdS,
I will have to use .htaccess because I do not have access below my domain name folder, I am on a shared server. I do not have an I.P. xxx.com is hosted on this server. xxx.co.uk and xxx.biz are parked on my registrars server and they are only forwarded to the hosted domain. I can only host one domain on my hosting solution but I can have any domian forwarded but not parked. For this reason I think the rules I saw at the apache home page will not work for me, they assumed that all donmains are parked on the same folder. To test this I will have to use a test domain as I cannot test on xxx.com because it ias an active site. This will take sometime to propagate the test domains before I can start testing. Anyway I will put the rules I think might work on here. Basically what(I think) they are supposed to do is take the path to a target folder and rename it as an entire url including the http://. ( but as I said I am not sure because I have not studied mod_rewrites at all) Code:
Last edited by JUNK KED : 09-Jan-2005 at 05:42.
Reason: add code
|
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IPv6 added by ICANN to Root Servers | 000 | Web Hosting Forum | 3 | 23-Jul-2004 04:04 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The