Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to use mod_rewrite

Status
Not open for further replies.

gxpark

Programmer
Aug 10, 2002
19
MX
Hi,

I've successfully configured mod_rewrite on a server using the following .htaccess file:

RewriteEngine on
RewriteBase /
RewriteRule ^edu(.*) /index.php?uri=$1

And so when any URL of this type is entered:


Apache calls
It works correctly (I don't know how since I copied the example elsewhere).

Now, I've tried the same on my development machine (for debugging purposes), but it does not work. Instead of calling the script, it throws a 404.

I have Windows XP Professional w/Apache 2.0.39

ANY help is REALLY appreciated :)

Ivan V.
 
How come that this always happens to me... I try endlessly to find an answer until I finally ask for help, and then suddenly, the solution pops in my head.

Well, I did many modifications to the httpd.conf file, until I got it right.

lol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top