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

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

Finally, I found a reference for this. Ok I'm fairly new to this. I'm assuming I need apache with my hosting.

Where can I find a good reference for learning how to have all the files on my website say www.website.com/file/filename.php to just say www.website.com/file/filename ?

I noticed it has something to do with a htaaccess file..

can anyone explain or send me in the right direction?

Thanks

Mike

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.