Post Reply 
.htaccess is blocking the content
27-Sep-2010, 07:59 AM
Post: #1
Question .htaccess is blocking the content
Hi there,

the .htaccess files in "comments/css" and "comments/agreement" are blocking the access.

I'd to rename them to get acces to them via the comments system.

Please, check them.

Bye
... Gert
Visit this user's website Find all posts by this user
Quote this message in a reply
27-Sep-2010, 01:54 PM
Post: #2
RE: .htaccess is blocking the content
Hi,

I fixed this a few days ago. I applied the fix to the current version, v1.2.

If you re-download Commentics you should see the following in the .htaccess file in the CSS folder.

Code:
OPTIONS -ExecCGI

# deny everything
# <FilesMatch ".*">
# Order Allow,Deny
# Deny from all
# </FilesMatch>

# now allow just certain necessary files
# <FilesMatch ".*\.(?i:css)$">
# Order Allow,Deny
# Allow from all
# </FilesMatch>

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
27-Sep-2010, 04:09 PM
Post: #3
RE: .htaccess is blocking the content
Hi Steven,

that's the content of the .htaccess file but it doesn't work on my server/provider.
The same happens with the css files in the admin dir. The auth.php can not load the css files or the images (I made a little change on the source code to display the commentics-logo on the page).

Bye
... Gert
Visit this user's website Find all posts by this user
Quote this message in a reply
27-Sep-2010, 04:41 PM
Post: #4
RE: .htaccess is blocking the content
What happens if you comment out the first line of the .htaccess file?
Code:
# OPTIONS -ExecCGI

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
27-Sep-2010, 04:44 PM
Post: #5
RE: .htaccess is blocking the content
Hi Steven,

it doesn't change anything.
Still no access.

Bye
... Gert
Visit this user's website Find all posts by this user
Quote this message in a reply
27-Sep-2010, 05:26 PM
Post: #6
RE: .htaccess is blocking the content
That's strange. With all lines commented out, it should essentially be an empty .htaccess file.

Does your server not allow .htaccess files?

Have you completed the interview?
Find all posts by this user
Quote this message in a reply
27-Sep-2010, 05:50 PM
Post: #7
RE: .htaccess is blocking the content
Hi Steven,

I just commented the 1st line out # OPTIONS -ExecCGI.
Nothing else.

And yes, my server can handle .htaccess files or es it wouldn't block the access to the dir when the .htaccess file is active.

I guess something in your rule is wrong.
I'll check tomorrow the internet. Perhaps I can find a solution.

Bye
... Gert
Visit this user's website Find all posts by this user
Quote this message in a reply
29-Sep-2010, 10:16 AM
Post: #8
RE: .htaccess is blocking the content
Hi Steven,

I've checked the internet and then I replaced this line:

Code:
<FilesMatch ".*\.(?i:css)$">

with that line:

Code:
<FilesMatch "\.(css|CSS)$" >

Now it works.

Bye
... Gert
Visit this user's website Find all posts by this user
Quote this message in a reply
29-Sep-2010, 12:56 PM
Post: #9
RE: .htaccess is blocking the content
What if you try to change the regex to
Code:
"\.(?i:css)$"
The regex from the first one looks correct to me though.

Here's a useful tool if you're interested: http://gskinner.com/RegExr/
You might have to reload the page a couple of times.

I'm giving you three guesses...
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)