News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

getting error 403 Forbidden

Started by Shrink, November 11, 2012, 01:51:11 AM

Previous topic - Next topic

Shrink

Hello guys,
I have installed new froum on subdomain. when i try to edit a post it gives following error
Quote403 Forbidden
Forbidden

You don't have permission to access /index.php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Not understand why this happens ?

Kill Em All

Double check to make sure all folders are CHMOD to 755 and all files to 644.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Shrink

checked but still facing the same problem :(

Colin

Do you have a mischievous .htaccess file in your forum or server root?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Shrink

Quote from: Colin on November 11, 2012, 02:45:14 AM
Do you have a mischievous .htaccess file in your forum or server root?
Yes i have .htaccess file in my server root.

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Shrink

i tried to openn it with code editor & view but it shows empty two lines.

Shrink

i just found that this error is occure only when i try to post two tables in single  post. If we avoid only this the froum is working.
particulary when i m try to post following post
[table][tr]

[td][i][b][font=georgia][size=12pt] Physics[/size][/font][/b][/i][/td]
[td][i][b][u][color=Marron]   [url=http://gyaan.shrinkdworld.com/index.php?topic=9.0] :Info_Links: [/url][/color][/u] [/b][/i][/td]

[td][u][i][b][color=navy]     [url=http://gyaan.shrinkdworld.com/index.php?topic=8.0] :Browse_Topic:[/url][/color][/b][/i][/u][/td]
[/tr]
[/table]

Physics contians following branches
[list]
[li]Classical Physics[/li]
[li]Modern Physics[/li]
[li]Applied Physics[/li]
[li]Computational Physics[/li]
[li]Atomic Physics[/li]
[li]Nuclear Physics[/li]
[li]Partical Physics[/li]
[li]Thermodynamics[/li]
[li]Mechanics[/li]
[li]Electromagnetism[/li]


[/list]

[table]
[tr][td][b] Thermodynamics[/b] [/td]
    [td][i][b][u][color=Marron][url=http://] :Info_Links: [/url][/color][/u] [/b][/i] [/td]
    [td][u][i][b][color=navy]  [url=http://] :Browse_Topic:[/url][/color][/b][/i][/u] [/td]  [/tr][/table]



If u know more please post them in my request.

mrintech

Ask your webhost to TURN OFF mod_security for your domain name

Then test again

Shrink

Quote from: mrintech on November 11, 2012, 05:11:27 AM
Ask your webhost to TURN OFF mod_security for your domain name

Then test again
what is mod_security? Please give me some links where i can understad it.

Colin

If you don't know what it is then you probably don't have the ability to enable or disable it :). Ask your host.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Shrink

#11
Quote from: Colin on November 11, 2012, 05:46:33 AM
If you don't know what it is then you probably don't have the ability to enable or disable it :). Ask your host.
it is disable for my domain. it is also need to disable for my subdomian?
i want to learn about it that why i am asking about it
Now Mod_security also disable for all
I found one .htaccess file in my cache directory it contain following code.
<Files *>
Order Deny,Allow
Deny from all
</Files>

MrPhil

If your host if halfway decent, you will be able to turn on (and off) mod security on a directory-by-directory basis. Like anything else in .htaccess, it affects a directory and everything under it. If you turn it off in /, you should be able to turn it back on in /mysub.

The code from .htaccess you posted has nothing to do with mod security.

Kill Em All

You can read more about mod security here:
http://wiki.simplemachines.org/smf/Mod_security_-_Having_problems_with_mod_security

and Google can provide even more insight if interested.


My Site: KEAGaming.com

Manual Installation of Mods
Prevent Spam and Forum Attacks
Please do not PM or email me for support unless offered, help should be publicly displayed to others.

Shrink

hey i don't knw  how this happen but now my problem is solved. Before two days my hosting provider tell me that all the file & folder permissions are correct also mod-security is also desiable for my subdomain also but still day before i am facing that problem. when i woke up today i try it once again it perfectly work. So don't kwnow how but problem is solved. :)
Thanks guys for such nice response

Colin

Fantastic. Stop by again if you anything else comes up.
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

MrPhil

Ah, isn't self-healing code wonderful? :)

Advertisement: