Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old March 13th, 2001, 10:41 AM
Michael Caplan Michael Caplan is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2001
Posts: 14 Michael Caplan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old March 13th, 2001, 03:13 PM
tron's Avatar
tron tron is offline
SwollenMember
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2000
Location: the master control
Posts: 234 tron User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 44 m 46 sec
Reputation Power: 9
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/

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Redirect in htaccess


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway