aosmith88
(Xel007)
December 27, 2010, 7:27pm
21
I was still getting 404 errors, so I did the following:
I made this change.
I changed AllowOverride to All.
Now instead of 404 errors, I’m getting “500 Internal Server Error”, which is an improvement. I checked the logs and have a bunch of these:
“Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.”
I guess the next logical step is to change the limit on internal recursion? Or is that generally a bad idea? Because 10 recurses seems like enough for most things.
tri
(tri - Tommy Riboe)
December 27, 2010, 9:34pm
22
aosmith88:
…
Now instead of 404 errors, I’m getting “500 Internal Server Error”, which is an improvement. I checked the logs and have a bunch of these:
“Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace.”
I guess the next logical step is to change the limit on internal recursion? Or is that generally a bad idea? Because 10 recurses seems like enough for most things.
I don’t know any reason why you get multiple redirections. Try commenting out all url rules. BTW you have a missing right bracket in the login rule.
/Tommy
rushino
(Sguillemette1)
May 24, 2011, 12:01pm
23
Hello,
For those that are using WAMP with ALIAS . After some tests, it seem that there a small modification to do on the .htaccess
It should be :
RewriteRule . /[b][ALIAS NAME][/b]/index.php
instead of :
RewriteRule . index.php
I believe you will need to change that once on the webserver…
Thanks!
Dhanendran
(Dhanukutty R)
June 11, 2013, 9:58am
24
aosmith88:
@jacmoe
Right now, I don’t have any rules. My current urlManager looks like this:
'urlManager'=>array(
'urlFormat'=>'path',
//'showScriptName' => false,
//'caseSensitive'=>false,
//'matchValue'=>false,
//'rules'=>array(
//'<view:(about|contact)>' => 'site/page',
//'<view:(index)' => 'site/login',
//),
),
It might also be helpful for me to mention that the way my site works is that you have to go through the login page to access any other part of the site (which is why I have <view:(index)’ => 'site/login)
@tri
I tried going through your steps. Step 1 works for my pages like contact. However, controller and controller/action give me 404 errors.
From what I can tell, mod_rewrite should be enabled. I went into httpd.conf and uncommented:
LoadModule rewrite_module modules/mod_rewrite.so
I also went into wamp’s .htaccess (on my computer, located in C:\wamp) and put the following as the only text in it:
Options +FollowSymLinks
RewriteEngine On
Also, when I uncomment “‘showScriptName’ => false,” in my main.php, I can login fine, but any link to another page in the site will give me errors.
@Gustavo
Thanks for all the help, suggestions and taking the time.
This is because, you have to setup your .htaccess file like this;
RewriteEngine on
if a directory or a file exists, use it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
otherwise forward it to index.php
RewriteRule . index.php
and place your .htaccess file where your index.php file is available.