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.
"Page not found" apache2 mod_rewrite
I can't get the link working.
this is my /var/www/vainilla/.htaccess file:
RewriteEngine On
RewriteBase /vainilla
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
the url exist:
http://127.0.0.1/vainilla/uploads/FileUpload/d6/a7df58f6be990391fb16cfd30bab05.zip
but when i access through the link:
http://127.0.0.1/vainilla/index.php?p=/uploads/FileUpload/d6/a7df58f6be990391fb16cfd30bab05.zip
i get 404.
what I'm doing wrong?
this is my /var/www/vainilla/.htaccess file:
RewriteEngine On
RewriteBase /vainilla
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L]
the url exist:
http://127.0.0.1/vainilla/uploads/FileUpload/d6/a7df58f6be990391fb16cfd30bab05.zip
but when i access through the link:
http://127.0.0.1/vainilla/index.php?p=/uploads/FileUpload/d6/a7df58f6be990391fb16cfd30bab05.zip
i get 404.
what I'm doing wrong?
Tagged:
0
Answers
After i'd upload any picture all that i can see only small preview. But when i trying to open it i get error that there is no such file (404). When i click on "Add picture to the message" it add link like this one
" img src="/vanilla/index.php?p=/uploads//FileUpload/90/992a15508d32c56b645a856d71dc48.jpg" />".
Is it right to add slash (/) TWICE after "uploads" folder? 0o.
I try to edit it like
"img src="/vanilla/index.php?p=/uploads/FileUpload/90/992a15508d32c56b645a856d71dc48.jpg" />
but it didn't load picture.
By the way, when i'm deleting any discussion i have error: "Not Found
The requested URL /vanilla/discussions was not found on this server."
Which version of v2 and addon are you using?
I think I saw a fix for that in github unstable, so it might be in 2.0.18b2 (or later)
hey, are you sure that you wrote folder name right?
/vainilla
Can you post here link to fix of this problem?
As i got, there is smth wrong with links....
http://forum/uploads/FileUpload/90/992a15508d32c56b645a856d71dc48.jpg
but it doesn't open by
/vanilla/index.php?p=/uploads/FileUpload/90/992a15508d32c56b645a856d71dc48.jpg
don't know why.....
i think this problem isn't in link. maby some php configurations....
http://vanillaforums.org/discussion/comment/140612#Comment_140612
RewriteCond %{QUERY_STRING} ^p\=/(uploads/.*)$
RewriteRule index.php %1 [L]
Hope this work of for you! ;-)