1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Need help with Apache redirect commands

Discussion in 'Cloaking and Content Generators' started by ds1718, Mar 31, 2011.

  1. ds1718

    ds1718 Junior Member

    Joined:
    May 25, 2010
    Messages:
    149
    Likes Received:
    47
    Can someone please help me to get Apache rewrite commands working for the following idea.

    I am looking to create a redirect command(s) that do the following

    I want to ignore a portion of a web url request.

    Example

    I want all of the following to return the same image..

    Code:
    www.imagehost.com/imagenumber/88/77/66/55.jpg
    Code:
    www.imagehost.com/imagenumber/xx/xx/xx/xx.jpg
    should return this image file
    Let me know if this is the wrong forum for this request, but I am trying to build a way to create 100,000's of url's to the same image.

    Thanks.. Figured that was similar to cloaking..

    DS
     
  2. wkrappen91

    wkrappen91 Power Member

    Joined:
    Sep 9, 2010
    Messages:
    588
    Likes Received:
    720
    Location:
    127.0.0.1
    put this inside your
    .htaccess

    Code:
    RewriteEngine on
    RewriteRule .* imagenumber.jpg
     
  3. popzzz

    popzzz Supreme Member

    Joined:
    Apr 12, 2009
    Messages:
    1,337
    Likes Received:
    13,699
    Location:
    Don't touch the REP!
    Except you need to be more generic with an expression because your example will only redirect requests for that specific image number instead of the many the OP is wanting.

    Enjoy ..... :cool2: