Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

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:
  #1  
Old September 2nd, 2000, 10:01 PM
hanumani hanumani is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2000
Location: wendell, mass, USA
Posts: 87 hanumani User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 18 sec
Reputation Power: 13
Hi, I'm a total newbie to .htaccess.
I'm trying to set up .htaccess so that if the user is comming from a specific domain name, they will be redirected to a specific directory in my server.
Please help!!

thank you
Jake

Reply With Quote
  #2  
Old September 3rd, 2000, 06:47 AM
freebsd
Guest
Dev Shed Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
>>comming from a specific domain name


I assume you are talking about HTTP_REFERER instead of REMOTE_HOST.


Here you go..


#place this into your .htaccess file at http://www.mydomain.com/.htaccess


RewriteEngine on
RewriteCond %{HTTP_REFERER} www.specificdomain.com/(.*)?
RewriteRule ^/?$ /specific_dir/ [R]
#/specific_dir/ should be as http://www.mydomain.com/specific_dir/


>>I'm a total newbie to .htaccess


This should be the only method for .htaccess way. You can also write an index.pl script to do the same task.


A newbie to .htaccess should never try to learn this. BTW, check out -> http://www.apache.org/docs/misc/rewriteguide.html and see if you understand it. If not, check out -> http://www.apache.org/docs/mod/directives.html


[This message has been edited by freebsd (edited September 03, 2000).]

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > .htaccess redirects

Developer Shed Advertisers and Affiliates



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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap