.htaccess help needed

Discussion in 'Apache' started by Scriptona, Mar 24, 2007.

  1. #1
    I have a file hosting site www.yonoup.com and currently the download links end with the file name and extension so download accelerators open the file and then don't download it because the file should be downloaded from the download page so i want the file links to end with .html

    this is an example of current download link

    http://www.yonoup.com/526FunnyClips02.zip

    i want it to be

    http://www.yonoup.com/526FunnyClips02.zip.html

    current rewrite rule used

    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^([^/]+)/?$ download.php?file=$1 [L]
    Code (markup):
    Help will be appreciated :)
     
    Scriptona, Mar 24, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    RewriteEngine On
    RewriteRule ^(.+)\.zip\.html$ download.php?file=$1.zip [L]

    Something like that?
     
    rodney88, Mar 24, 2007 IP
  3. Scriptona

    Scriptona Notable Member

    Messages:
    4,957
    Likes Received:
    265
    Best Answers:
    0
    Trophy Points:
    280
    #3
    I got it sorted already - the links were given upon upload so the code had to be changes in the inner upload page not the .htaccess file
     
    Scriptona, Mar 31, 2007 IP