0

Hi
I recently added
Options +Multiviews

to my .htaccess file so that URLs on my site would be

mydomain.com/features/cars

rather than

mydomain/features/cars.php

It's working fine, but I now wish to redirect bookmarked users and robots that request the old URLs.

I've tried

Redirect /features/cars.php
http://mydomain.com/features/cars

but this gives file not found: presumably as you can't redirect to the same place.
Does anyone know how to do this?

thanks in advance

2
Contributors
4
Replies
5
Views
11 Years
Discussion Span
Last Post by geekpie
0

I now suspect it's a job for mod_rewrite: after all you can change the URL to have the www in if the user doesn't type it:
RewriteCond %{HTTP_HOST} ^mydomain.co.uk
RewriteRule (.*) http://www.mydomains.co.uk/$1 [R=301,L]

So how do I Rewrite all filename.php requests on my site to filename

(no .php)?
cheers
geekpie

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.