These forums are not for official support. If you are looking for official support please click here.
You are here: Home :: Forum Home :: Modules :: Channel Files :: Thread
In the control pannel when I click on a file link in my local channel files fields there is a question mark which seems to be creating 404 errors. There seems to be some problem with how URLs are being obscured. Here is the URL:
http://mydomain.com/?/uploads/myfolder_name/folders/59/doctitle.pdf
Note: (the following is what the actual working URL to my file looks like)
http://mydomain.com/uploads/myfolder_name/folders/59/doctitle.pdf
Recent Changes on site that might be part of the issue: I renamed my site in the CP removing the www from mydomain.com, then I decided to add it again. However now with or with out the www on my domain I still seem to be getting these 404 errors.
my amazon s3 channel file fields still work great.
-OTHER DEBUG INFO: RAW LOG DATA.-
GET /?ACT=26&fid=89&d=52&f=mydoc.doc HTTP/1.1
Host: mydomain.com
HTTP/1.1 302 Moved Temporarily
Date: Thu, 19 Jan 2012 21:14:57 GMT
Server: Apache
X-Powered-By: PHP/5.2.17
Set-Cookie: exp_last_visit=1011647697; expires=Fri, 18-Jan-2013 21:14:58 GMT; path=/
Set-Cookie: exp_last_activity=1327007697; expires=Fri, 18-Jan-2013 21:14:58 GMT; path=/
Location: http://mydomain.com/?/uploads/myfolder_name/folders/52/mydoc.doc
Content-Length: 0
Content-Type: text/html
Any guidance on this would be great.
Hi.
I suspect your .htaccess is redirecting all requests.
Also please check your file upload preferences, do you have an absolute URL there? or a relative URL?
In file prefs I have the absolute url. (Seems to work fine in EE’s native file manager.)
Do I have to make some kind of exception for the “/?ACT=26” in my .htaccess file? It seems to work fine when it goes to amazon S3 just doesn’t work locally with EE folders. My upload folder has access.
This is my .htaccess file:
—————————————————————————-
# ExpressionEngine rewrite to remove index.php from the URL (but allow EE to access EE folders/files)
#RewriteCond %{QUERY_STRING} ^(css=.*)$ [NC]
#RewriteRule ^(.*)$ /index.php?/%1 [L]
RewriteCond $1 !^(images|admin|sites|uploads|mysystem|themes|robots\.txt|index\.php|path\.php) [NC]
RewriteRule ^(.*)$ /index.php/$1 [L]
Does that look normal to you?
I got this issue fixed it was a relative folder path.
Thank you.