I have uploaded my site on live which is in cakephp 1.3.
Site have two part admin and web
admin part is working fine but web part is not working, if i removed .htaccess then its working fine.
My .htaccess rules are
<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 is not working, can anyone suggest me what is the issue?
http://project-in-progress.com/imsjobportal/admin/
url worked
http://project-in-progress.com/imsjobportal/
url not working
Assuming that the htaccess file is in your /imsjobportal/
directory, it's probably this rule that is looping:
RewriteRule (.*) web/webroot/$1 [L]
You need to add a condition to prevent the looping:
RewriteCond %{REQUEST_URI} !/web/webroot/
RewriteRule (.*) web/webroot/$1 [L]
删除-RewriteRule(。*)web / webroot / $ 1 [L]-然后检查,它应该可以工作。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.