How to edit mod_rewrite.c in apache

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
yashvant
Forum Newbie
Posts: 8
Joined: Mon May 05, 2008 4:22 am

How to edit mod_rewrite.c in apache

Post by yashvant »

hello any body help me
how to increase "MaxRedirects" by default 9 but I want to increase any no.




From
yashvant
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Re: How to edit mod_rewrite.c in apache

Post by John Cartwright »

In .htaccess, you can do

Code: Select all

RewriteOptions MaxRedirects [i]n[/i]
yashvant
Forum Newbie
Posts: 8
Joined: Mon May 05, 2008 4:22 am

Re: How to edit mod_rewrite.c in apache

Post by yashvant »

Hi,
But this is not working

My code is
------------------------------------
Options +FollowSymLinks
RewriteEngine on
# increase back Reference

RewriteOptions MaxRedirects 20



generate Error 500
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: How to edit mod_rewrite.c in apache

Post by pickle »

Moving to "Installation and Configuration" board.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply