These forums are not for official support. If you are looking for official support please click here.

Welcome guest, please Login or Register

You are here: Home :: Forum Home :: Modules :: Channel Files :: Thread

   

Question marks in URL creating 404’s in Control Panel

Rank

Total Posts: 10

Joined 2011-12-12

PM

 

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
Thu19 Jan 2012 21:14:57 GMT
Server
Apache
X
-Powered-ByPHP/5.2.17
Set
-Cookieexp_last_visit=1011647697expires=Fri18-Jan-2013 21:14:58 GMTpath=/
Set-Cookieexp_last_activity=1327007697expires=Fri18-Jan-2013 21:14:58 GMTpath=/
Locationhttp://mydomain.com/?/uploads/myfolder_name/folders/52/mydoc.doc
Content-Length0
Content
-Typetext/html 

Any guidance on this would be great.

 

 

Rank
Rank
Rank
Rank

Total Posts: 1237

Joined 2010-12-24

PM

 

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?

Rank

Total Posts: 10

Joined 2011-12-12

PM

 

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?

 

Rank

Total Posts: 10

Joined 2011-12-12

PM

 

I got this issue fixed it was a relative folder path.
Thank you.