Forum Moderators: phranque

Message Too Old, No Replies

Convert http://domain.com/images to http://domain.com/images/

Need help plz!

         

mikewalterz

10:45 pm on Jan 7, 2007 (gmt 0)

10+ Year Member



Hello,
I need to know one thing. How could i convert [domain.com...] to [domain.com...] only when there is no extension.

Thanks.

jdMorgan

2:34 am on Jan 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Is this to do with your other recent thread [webmasterworld.com]? If so, the context may be important, and we should continue there.

> how could i convert /images to /images/ only when there is no extension.

Answering in a vacuum, I'd say:


RewriteRule ^images$ http://www.example.com/images/ [R=301,L]

That will redirect /images to /images/ as requested, but I'm not sure I understand what you mean by "only when there is no extension."

Jim