Jump to content


Mod rewrite

  • Please log in to reply
1 reply to this topic

#1 dj

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 02 August 2006 - 03:30 PM


I have searched google, this forum and everything else i could think of but could not find any help on this subject.

I have installed Apache on Windows 2000, using it as a development server.

TI am trying to get a url like www.test.com/user to point to www.test.com/user.php?userid=user

I know that i have to use mod rewrite to do this, so i tried to set it up on my server.

I uncommented the line LoadModule rewrite_module modules/mod_rewrite.so but nothing happens. I get the following error now when i try to view the site.

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, dj-05@hotmail.co.uk and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

The error in the error log says

[Wed Aug 02 15:44:45 2006] [error] [client] mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.

How do i fix this?


#2 techiefreak05

  • Members
  • PipPipPip
  • Advanced Member
  • 494 posts
  • LocationER, MN

Posted 07 August 2006 - 04:53 AM

IDK if you can have '/user/ point to '.php?userid=user" or w/e, I know you can do it the other way around, but I know you have to use 'Rewrite Rule'  I think I know how I can help, look at this:

RewriteRule ^home$ index.php
that does this: www.domain.com/home --->www.domain.com/index.php

it shows inddex.php in the browser window while still showing 'home' in the address bar. hope that helps!
Link shortener with advanced, detailed statistics:


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users