|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hi,
I have two questions, that I am sure both have a very easy answer, but I can't for the life of me figure it out. I want to redirect all pages being accessed from http://flag.blackened.net/ise/ to http://www.social-ecology.org/ Simple enough. What I came up with is this which I have embedded in my htaccess file: Redirect permanent / http://www.social-ecology.org/ This works partially. The problem is this: a file being accesssed such as http://flag.blackened.net/ise/dummy.html will be redirected to http://www.social-ecology.org/ise/dummy.html the file dummy.html does not exsist in the ise/ directory on the server http:/www.social-ecology.org/. It actually exists in the root directory. How would I tell apache to drop the directory ise/ ? The second is this: how would i turn off the Redirect directive in a subdirectory, so that files in that directory are served? I'm sure this can be solved with mod_rewrite, but unfortunately the system I am working on is not compiled with it. So I am stuck with the Redirect directive. These seem like simple things that the Redirect directive should be able to handle. Any suggestions? Thank you, Michael |
|
#2
|
||||
|
||||
|
has been a while since i have done any apache stuff...i am assuming that you are using apache, but in httpd.conf you can just add this line for the certain directory and then put the new url (no need to use htaccess):
Redirect old-URI new-URL or more specifically Redirect /ise/ http://www.social-ecology.org/ |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Redirect in htaccess |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|