|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Hy to all you Apache wizards!
I was wondering if it would work to redirect, say, press.wcc.at to a subdirectory within the DOCUMENT_ROOT. It would be even cooler if that worked withoout the user knowing that. And all of that in the .htaccess file. The reason is, that I don't have access to the Apache config files. All I got is the .htaccess. best regards and thanks in advance Sheriff
__________________
There are two major products that come out of Berkeley: LSD and UNIX. We don't believe this to be a coincidence. God is just hacker who rooted the world! |
|
#2
|
|||
|
|||
|
There are many ways to do redirection from within .htaccess. Start here -> http://httpd.apache.org/docs/mod/mo...s.html#redirect
>> It would be even cooler if that worked withoout the user knowing that What do you mean? Are you saying a user tries to access http://press.wcc.at/index.html but Apache internally redirect to http://press.wcc.at/path/to/another/file.html without letting the user aware of /path/to/another/file.html and display http://press.wcc.at/index.html as is? If so, you need mod_rewrite. In most cases, the plain redirection (from the link above) would do just fine. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > redirect over .htaccess??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|