Modify .htaccess

uniq111

New Member
Messages
1
Reaction score
0
Points
0
I removed the original content of the .htaccess file with followings:
---
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

AddType application/x-httpd-php .htm .html
---
and got a 403 Forbidden error message.

Would someone please let me know what's needed to get the modified file working ?

Thanks
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Please use correct section while posting.

***Moved to programming help***
 

leafypiggy

Manager of Pens and Office Supplies
Staff member
Messages
3,819
Reaction score
163
Points
63
so the original .htaccess had

Code:
Options All -Indexes
Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

AddType application/x-httpd-php .htm .html
?

Do you currently have a index.php file?

That's the only reason I could see for it throwing a 403.
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
and got a 403 Forbidden error message.
When you accessed what? Errors are a response to some action; HTTP status errors are in response to requesting a URL. An error status doesn't carry enough information for diagnosis. What would your doctor tell you if you said "I have a pain. What's the problem?"
 
Top