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:
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  
Old June 13th, 2001, 12:46 PM
Sheriff's Avatar
Sheriff Sheriff is offline
Oheim
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Austria
Posts: 69 Sheriff User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 8
Cool redirect over .htaccess???

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!

Reply With Quote
  #2  
Old June 13th, 2001, 06:46 PM
freebsd freebsd is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2001
Posts: 5 freebsd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > redirect over .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