Welcome, Guest
Username: Password: Remember me

TOPIC: 403 Error page after enabling URL rewriting

403 Error page after enabling URL rewriting 3 years 8 months ago #53850

  • rasheed
  • rasheed's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Thank you received: 2
  • Karma: 0
Hello,

I am getting a 403 error when i enable the URL rewriting in the config.php. I also renamed the htaccess file.
Forbidden
 
You don't have permission to access /surveys/45799/lang-fr on this server.
 
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any help please ?

In PHPinfo, i have:
url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset= a=href,area=href,frame=src,input=src,form=,fieldset=

Thank you
The administrator has disabled public write access.

Re:403 Error page after enabling URL rewriting 3 years 8 months ago #53872

  • c_schmitz
  • c_schmitz's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 755
  • Thank you received: 104
  • Karma: 88
Looks like your server does not support rewriting or another .htaccess file (maybe in the root dir) is creating the problem.
Support us, too. Donate to the LimeSurvey project and help keep us going!
The administrator has disabled public write access.

Re:403 Error page after enabling URL rewriting 3 years 8 months ago #53981

  • rasheed
  • rasheed's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 35
  • Thank you received: 2
  • Karma: 0
It was due to another .htaccess in the root indeed.
Thank you !
The administrator has disabled public write access.

Re:403 Error page after enabling URL rewriting 3 years 8 months ago #54005

  • Mazi
  • Mazi's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 5324
  • Thank you received: 294
  • Karma: 249
You're welcome!

If our hints have been helpful and you enjoy limesurvey please consider a donation to the team .
We do all this in our free time and you don't have to pay a penny for this software.

Without your help we can't keep this project alive.

Best regards/Beste Grüße,
Dr. Marcel Minke
(Limesurvey Head of Support)
Need Help? We offer professional Limesurvey support
Contact: marcel.minke(at)limesurvey.org'"
The administrator has disabled public write access.

Re: 403 Error page after enabling URL rewriting 3 years 4 months ago #59450

  • xabungo
  • xabungo's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I'm having the same problem, 403 forbidden.
I already verify the .htaccess, and is the original from installation.
There is no other htaccess even in other folder.
The limesurvey isn't on root, is in a folder call /pesquisa.

You can check!
guest-associados.com.br/pesquisa/index.p...oken=pfi4sxxmb6f9us9
the page load perfect, but when I click in Start thr survey, I receive the 403 forbidden.

What I'm missing?

my .htaccess is like this:
RewriteEngine On

## DONT TOUCH ANYTHING ##
# Only with survey code
# server.fr/123456
RewriteRule ^([0-9]+)/*$ index.php?sid=$1 [L,QSA]

# Survey code + Lang : server.fr/123456/lang-fr
RewriteRule ^([0-9]+)/lang-([^/]*)/*$ index.php?sid=$1&lang=$2 [L,QSA]

# Survey code + Lang + Token : server.fr/123456/lang-fr/tk-sdlfkjozeiru
RewriteRule ^([0-9]+)/lang-([^/]*)/tk-([^/]*)/*$ index.php?sid=$1&lang=$2&token=$3 [L,QSA]

# Survey code + Token : server.fr/123456/tk-sdlfkjozeiru
RewriteRule ^([0-9]+)/tk-([^/]*)/*$ index.php?sid=$1&token=$2 [L,QSA]


Best regards,

Ricardo Dias
Last Edit: 3 years 4 months ago by xabungo.
The administrator has disabled public write access.

[SOLVED] Re: 403 Error page after enabling URL rewriting 3 years 4 months ago #59499

  • xabungo
  • xabungo's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 3
  • Karma: 0
I was having the same problem.
It was a mod_security rule call a10_asl_rules.
here is the error:
Access denied with code 403 (phase 2). Pattern match "(< ?(?:script|about|applet|activex|chrome).*(?:script|about|applet|activex|chrome) ?>|> ?< ?(img ?src|a ?href) ?= ?(ht|f)tps?:/|" ?> ?<|" ?[a-z]+ ?<.*>|> ?"? ?(>|<)|< ?/?i?frame|\%env)" at ARGS:move2. [line "690"] [id "340147"] [rev "56"] [msg "Atomicorp.com - FREE UNSUPPORTED DELAYED FEED - WAF Rules: Generic XSS filter"] [data ""] [severity "CRITICAL"] I disable the mod security for that domain and limesurvey went perfect. but the domain is insecure now...... lets see what happens! Best regards Ricardo Dias[file "/usr/local/apache/conf/modsec/10_asl_rules.conf"] [line "690"] [id "340147"] [rev "56"] [msg "Atomicorp.com - FREE UNSUPPORTED DELAYED FEED - WAF Rules: Generic XSS filter"] [data ""] [severity "CRITICAL"]


I disable the mod security for that domain and limesurvey went perfect.
but the domain is insecure now...... lets see what happens!

Best regards

Ricardo Dias
The administrator has disabled public write access.

Re:403 Error page after enabling URL rewriting 2 years 10 months ago #68312

  • sminfotn
  • sminfotn's Avatar
  • OFFLINE
  • Fresh Lemon
  • Posts: 1
  • Karma: 0
please i have a big problem i can't load my limesurvey

error 404:
You don't have permission to access /limesurvey/admin/admin.php on this server.
The administrator has disabled public write access.
Moderators: ITEd
Time to create page: 0.172 seconds
Donation Image