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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mod_rewrite with multiviews problem

Status
Not open for further replies.

bobpeers

Technical User
Joined
Jul 29, 2006
Messages
1
Hi,
I use mod_rewrite to redirect all traffic on 3 parked domains to a single domain, this looks like below and works fine:
Code:
RewriteCond %{HTTP_HOST}   !^[URL unfurl="true"]www\.bobpeers\.com[/URL] [NC]
RewriteCond %{HTTP_HOST}   !^$
RewriteRule ^(.*) [URL unfurl="true"]http://www.bobpeers.com/$1[/URL] [R=301,L]
However I also use multiviews so my links look like this:

The problem is that after mod_rewrite the user is directed to the page including the extension but I would rather the redirect only inluded the name without extension.
Any ideas how to strip the .php part after mod_rewrite has done it's job.
thanks,
Bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top