|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Can anyone tell me how to set up a "blind or alias" url. Example: I have a web site that clients come to. I also want them to buy computers but the computers stuff is on another site. I don't want the client to see the other actual url but one that I make up. How can I do this?
------------------ Robert Johnson |
|
#2
|
|||
|
|||
|
There are many ways to do it in Perl.
i.e. LWP::Simple Since you posted this to Apache forum, I assume you want the Apache way. Start here -> http://www.engelschall.com/pw/apache/rewriteguide/#ToC26 Here is my example should you not understand anything about it... 1) create a "test" directory as shown below: http://www.foobar.com/test 2) create an .htaccess file at http://www.foobar.com/test/.htaccess 3) put the following in your .htaccess RewriteEngine on RewriteBase /test/ RewriteRule ^(.*)$ http://www.perl.com/CPAN-local/modules/by-module/$1 [P] 4) then quickly go to http://www.perl.com/CPAN-local/modules/by-module/ and take a look 5) then go to your own http://www.foobar.com/test/ |
|
#3
|
|||
|
|||
|
Thank you. I put it here in Apache because I couldn't think where else to post it.
Regards, <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by freebsd: There are many ways to do it in Perl. i.e. LWP::Simple Since you posted this to Apache forum, I assume you want the Apache way. Start here -> http://www.engelschall.com/pw/apache/rewriteguide/#ToC26 Here is my example should you not understand anything about it... 1) create a "test" directory as shown below: http://www.foobar.com/test 2) create an .htaccess file at http://www.foobar.com/test/.htaccess 3) put the following in your .htaccess RewriteEngine on RewriteBase /test/ RewriteRule ^(.*)$ http://www.perl.com/CPAN-local/modules/by-module/$1 [P] 4) then quickly go to http://www.perl.com/CPAN-local/modules/by-module/ and take a look 5) then go to your own http://www.foobar.com/test/ [/quote] |
|
#4
|
|||
|
|||
|
Use ProxyPass and ProxyPassReverse, part of mod_proxy (no Perl required).
Use something like: ProxyPass /store/ https://store.otherdomain.com/ ProxyPassReverse https://store.otherdomain.com/ /store/ |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > How to set up a "blind or alias" url |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|