php - 500 Internal Server Error because of htaccess in cakephp 1.3 -


i have uploaded site on live in cakephp 1.3.

site have 2 part admin , web

admin part working fine web part not working, if removed .htaccess working fine.

my .htaccess rules

<ifmodule mod_rewrite.c> rewriteengine on rewritebase /imsjobportal/ rewriterule ^admin/$ admin/webroot/ [l] rewriterule ^$ web/webroot/ [l] rewriterule (.*) web/webroot/$1 [l] </ifmodule>  

but web part not working, can suggest me issue?

http://project-in-progress.com/imsjobportal/admin/ url worked

http://project-in-progress.com/imsjobportal/ url not working

assuming htaccess file in /imsjobportal/ directory, it's rule looping:

rewriterule (.*) web/webroot/$1 [l] 

you need add condition prevent looping:

rewritecond %{request_uri} !/web/webroot/ rewriterule (.*) web/webroot/$1 [l] 

Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -