Results 1 to 11 of 11

Thread: .htaccess ?

  1. #1
    Join Date
    Nov 2004
    Location
    Marietta PA
    Posts
    137

    .htaccess ?

    Is it possible to use .htaccess to redirect a user from a certain page that refered him to your site.

    ie user x was just on www.abc.com and clicks a link or types in a site that goes to www.cba.com. Sicne user x came from abc he will be redirected to www.cba.com/abc.

    Is that possible with a .htaccess file or does soem one know of a simple way to preform this.

    I been looking on google with no solid answers, so I figured I try here. Easier to explain to a human then a search engine.

    Thanks
    Digital Offensive
    http://www.digitaloffensive.com
    Take an offensive approach to Security know what your foes know!

  2. #2
    Join Date
    Apr 2005
    Location
    2nd biggest state
    Posts
    33
    I'm not 100% sure that a .htaccess can do do this, but you should be able to do this with php, cgi, or asp by checking who referred them and then redirect based on that referreral.

  3. #3
    Join Date
    Apr 2003
    Location
    San Jose, CA.
    Posts
    1,622
    RewriteRule !^abc/ - [C]
    RewriteCond %{HTTP_REFERER} !^$
    RewriteCond %{HTTP_REFERER} ^http://www\.abc\.com [NC]
    RewriteRule ^(.*) /abc/$1 [L]

  4. #4
    Join Date
    Nov 2004
    Location
    Marietta PA
    Posts
    137
    Nice work and i just put this in the the .htaccess file?
    Digital Offensive
    http://www.digitaloffensive.com
    Take an offensive approach to Security know what your foes know!

  5. #5
    Join Date
    Apr 2003
    Location
    San Jose, CA.
    Posts
    1,622
    Yea... i'm not claiming it actually works tho.. i tested it pretty quickly.

  6. #6
    Join Date
    Nov 2004
    Location
    Marietta PA
    Posts
    137
    Cool will test this out thanks for your help.
    Digital Offensive
    http://www.digitaloffensive.com
    Take an offensive approach to Security know what your foes know!

  7. #7
    Join Date
    Apr 2005
    Location
    India
    Posts
    505
    .htaccess will not be helpful to you for such redirection. You will have to use either php or cgi for such redirection.

  8. #8
    Join Date
    Nov 2004
    Location
    USA
    Posts
    41
    Why do you think that genxweb wants to know this?

    Check this out:
    My Site redirected To His Site?

    I think that genxweb is not a very honest person....Dont you?

    I sold genxweb my domain name with some hosting customers, and he started crying so much, I gave him his money back so he wouldnt cry ...LOL
    He finely figured out how to give the name back after a day or so and this has been happening ever since. nice trustworthy guy isnt he

    I also had emailed 2 of my clients and told them to change their dns settings to his server, and still gave his money back evn at the loss of 2 customers that he never paid for
    Him and his partner at EZHOSTINGPRO.com tried to tell me that the customers didnt signup yet and they were still mine...LOL

    Beginners....Go figure

    Beware of these guys!!!
    Last edited by Nice_Dude; 04-17-2005 at 06:05 PM.

  9. #9
    Join Date
    Nov 2004
    Location
    Marietta PA
    Posts
    137
    I would suggest you leave this issue private and avoid posting untrue facts. I have also reported this to the mods.
    Last edited by genxweb; 04-17-2005 at 07:25 PM.
    Digital Offensive
    http://www.digitaloffensive.com
    Take an offensive approach to Security know what your foes know!

  10. #10
    Join Date
    Nov 2004
    Location
    USA
    Posts
    41
    What are you talking about?

    I am only stating my opinion here

    People here are adult enough to determin for them selfs if what I think, is true or not

    I made no statment here that was un true at all, because I am an honest and trusted person

    You should try it !

  11. #11
    Join Date
    Jan 2005
    Location
    Cardiff, UK
    Posts
    375
    what has this got to do with .htaccess?
    Peter Hall
    Tera Web Hosting
    UK Web Hosting and Backup Storage

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •