Closed Thread
Results 1 to 6 of 6
Like Tree2Likes
  • 2 Post By roots

Thread: How to redirect a download file URL to another download file URL

  1. #1
    roots's Avatar
    roots is offline x10Hosting Member roots is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    23

    Question How to redirect a download file URL to another download file URL

    How to redirect a download file URL to another download file URL?
    Means suppose i have a url like this:

    http://abc.exofire.net/downloads/abc.exe

    and i want to redirect it to

    http://abc.exofire.net/downloads/pqr.exe
    How can this be done?

    Because standard Redirects are not working with file URLs.

    here is my statement in .htaccess file

    RewriteRule ^/downloads/abc.exe$ http://mysite.exofire.net/downloads/pqr.exe

    Not Workingggg . :happysad:
    dinomirt96 and karimirt47 like this.

  2. #2
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: How to redirect a download file URL to another download file URL

    Can't you just change the file name?
    Thanks,
    Brandon Long

  3. #3
    southpark4602 is offline x10Hosting Member southpark4602 is an unknown quantity at this point
    Join Date
    Oct 2007
    Posts
    39

    Re: How to redirect a download file URL to another download file URL

    Quote Originally Posted by Brandon View Post
    Can't you just change the file name?
    I second your opinion.;) It seems that simple, anyway....

  4. #4
    Synkc's Avatar
    Synkc is offline Lord Of The Keys Synkc is an unknown quantity at this point
    Join Date
    Jun 2007
    Location
    Hervey Bay, Australia
    Posts
    1,765

    Re: How to redirect a download file URL to another download file URL

    You could use mod_rewrite to cause the location "http://abc.exofire.net/downloads/abc.exe" to be constructed from a php file (abc.php); which would allow you to redirect to your "http://abc.exofire.net/downloads/pqr.exe" file via the use of the header(location:'dfsf') function.
    Last edited by Synkc; 11-17-2007 at 08:28 PM.
    E-mail: synkc[at]x10hosting[dot]com
    Hirokima.com

  5. #5
    Brandon's Avatar
    Brandon is offline Former Senior Account Rep Brandon is on a distinguished road
    Join Date
    Jun 2006
    Location
    Tewksbury, MA
    Posts
    9,589

    Re: How to redirect a download file URL to another download file URL

    Also for the .htaccess, you can do this.

    Make a .htaccess inside your 'downloads' folder, and enter the following into it.

    Code:
    RewriteEngine on
    RewriteRule abc.exe$ /downloads/pqr.exe
    Should be as simple as that.
    Thanks,
    Brandon Long

  6. #6
    roots's Avatar
    roots is offline x10Hosting Member roots is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    23

    Re: How to redirect a download file URL to another download file URL

    phew..... finally solved.
    Thank You all. :lockd:

Closed Thread

Similar Threads

  1. Replies: 4
    Last Post: 11-09-2007, 07:48 AM
  2. Internet Download Manager 5.11 build 5
    By duongtata in forum Computers & Technology
    Replies: 6
    Last Post: 09-11-2007, 02:19 PM
  3. googkle.com
    By dsfreak in forum Off Topic
    Replies: 17
    Last Post: 07-12-2006, 05:09 PM
  4. Converting a .RMVB file
    By SEŅOR in forum Off Topic
    Replies: 7
    Last Post: 06-19-2006, 02:20 PM
  5. Free Software for your Computer
    By Chris S in forum Computers & Technology
    Replies: 48
    Last Post: 04-21-2006, 02:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers