Apache Server configuration support - Mod rewrite

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > October 2006 > Mod rewrite





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Mod rewrite
jeremyfrazao@gmail.com

2006-10-28, 1:37 am

I'm trying to rewrite:

http://dev.kiva.org/lender/jeremy

to:

http://dev.kiva.org/app.php?page=le...iew&name=jeremy

It seems to be working somewhat, but the problem is that apache isn't
dropping the "lender/" from the url, so on the page I wind up with
hrefs with 'lender/'. For example,

http://dev.kiva.org/lender/app.php?page=about

The 'lender' shouldn't be there, and it's screwing up all my links
(including my stylesheet import). My .htaccess file is:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^lender/([^/.]*)$ /app.php?page=lender&action=view&name=$1
[NC,L]

Please help!!

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com