|
Home > Archive > Apache Server configuration support > April 2007 > Redirection question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Redirection question
|
|
|
|
| Davide Bianchi 2007-04-26, 1:20 pm |
| On 2007-04-26, ecurts@neo.rr.com <ecurts@neo.rr.com> wrote:
> 2) Now let's say we have an awesome resource located at
> www.blahblah.com/~awesomeresource
You need to configure a Virtual Host to handle the domain, then in the
body of the virtual host you just put a
Redirect Permanent / http://www.blahblah/~awesomeresource
See the documentation about virtual host.
Davide
--
The gates in my computer are AND, OR and NOT; they are not Bill.
| |
| shimmyshack 2007-04-26, 7:20 pm |
| On Apr 26, 5:15 pm, "ecu...@neo.rr.com" <ecu...@neo.rr.com> wrote:
> Greetings,
>
> Our school district runs Apache on our district Linux web server. I
> want to do a redirection, which I think Apache should be able to
> handle (maybe with Mod Rewrite? Maybe some other way?) Here is the
> situation...
>
> 1) Let's say our web server address iswww.blahblah.com(just an
> example)
>
> 2) Now let's say we have an awesome resource located atwww.blahblah.com/~awesomeresource
>
> 3) The resource is so awesome, we want people to be able to get to it
> easily. So we purchase the domain namewww.awesomeresource.com(of
> course not really that, just an example)
>
> 4) Now we wantwww.awesomeresource.comto actually go towww.blahblah.com/~awesomeresource
>
> 5) I know how to edit the DNS record to sendwww.awesomeresource.com
> towww.blahblah.com, but not to the full needed pathwww.blahblah.com/~awesomeresource
>
> So there is the problem ... how to makewww.awesomeresource.comgo
> directly towww.blahblah.com/~awesomeresource
>
> Any suggestions are greatly appreciated! Thanks in advance,
>
> Eric Curts
if you want the url to still read www.awesomeresource.com then your
virtualhost should have a different document root from www.blahblah.com,
one which points to the directory that holds the awesomeresource job
done, in the same way that you set up bb.com to serve files on the
computer, you now set up ar.com to serve files, each with its own doc
root.
|
|
|
|
|