Forum Moderators: phranque

Message Too Old, No Replies

.htaccess: Replacing capital letter with hyphen and small letter in URL

         

Honey Bhutani

5:15 am on Mar 14, 2008 (gmt 0)

10+ Year Member



Hi,

I am having a URL say

http://www.example.com/search/searchMain

and I need a URL like

http://www.example.com/search/search-main

Now this i have to do in htaccess.

Can anyone help me how to redirect the above url with the below url in htaccess.

Thanks
Honey

[edited by: tedster at 9:55 pm (utc) on Mar. 14, 2008]
[edit reason] switch to example.com - it can never be owned [/edit]

coopster

9:27 pm on Mar 14, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Honey_Bhutani.

Do you want to permanently redirect your users? Have a look at the mod-alias [httpd.apache.org] page for details.

Honey Bhutani

5:26 am on Mar 17, 2008 (gmt 0)

10+ Year Member



No i don't want to redirect users permanently. I just want to show that in browser when user clicks any of the links.