Re: Need help regarding rewrite error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Nov 26, 2008 at 7:00 AM, amar4kintu <amar.kintu@xxxxxxxxx> wrote:
>
>
> I tried with url http://10.104.70.2/certilogo/index

You problem is that you have your rewrites in your .htaccess. This
causes internal processing to start over again after the rewrite, and
this can cause loops. [L] really doesn't mean last in a .htaccess
file.

The problem is this rule:
RewriteRule ^.*$ /certilogo/index.php [NC,L]

This catches everything, and redirects it to index.php. But after
rewriting your URL apache will start a new request (since this is a
rewrite in .htaccess) and rewrite your url again to index.php, which
starts another request etc...
You need to break this loop. There are two ways.
-> add a RewriteCond that makes sure this rule does not get applied to
index.php.
or
-> add your rewrites in your httpd.conf

Krist

-- 
krist.vanbesien@xxxxxxxxx
krist@xxxxxxxxxxxxx
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux