Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

How to configure to allow direct download?

edited November 2010 in Vanilla 2.0 - 2.8
Hi I know I have to edit some file and add extensions to allow certain files to be able to download them directly without having the redirects

How do I do it?

Thanks
Tagged:

Comments

  • TimTim Vanilla Staff
    I have no idea what you're asking here. Can you try to explain more clearly please

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • visit
    http://cevapbankasi.com/google712db21ae41c5835.html

    the file is their but I cant access , it says Page Not Found,The page you were looking for could not be found.

    Thank you
  • TimTim Vanilla Staff
    Please paste the contents of your .htaccess file. Generally speaking, if you use our .htaccess, any file that actually exists on your server will be served if you try to access it directly.

    Vanilla Forums COO [GitHub, Twitter, About.me]

  • I haven't changed its contents


    # Original
    # If you modify this file then change the above line to: # Modified

    RewriteEngine On
    # Certain hosts may require the following line.
    # If vanilla is in a subfolder then you need to specify it after the /.
    # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
    # RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]



    Thanks for helping out.
  • Triple-check that filename and make sure there's not a space after it or something weird like that.
  • I was trying to verify my site with google webmaster tools

    anyway I verified my site using the dns tool

    the file I download from google webmaster toool was google712db21ae41c5835.html

    no spaces Triple checked :)

    I gave a try with .txt document and downloaded correctly no page redirects.

    that must be some sort of bug or is it my server?
  • Yeah, that's very weird. This line in the htaccess file:
    RewriteCond %{REQUEST_FILENAME} !-f
    says "ignore the rule below if this is a path to a real file." Not sure what's happening with that particular file, but glad you were able to work around it.
Sign In or Register to comment.