bobpeers
Technical User
- Jul 29, 2006
- 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:
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
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]
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