Hello. I am new to mod_rewrite(). I just need some help in using the mod_rewrite() in my website. For doing mod_rewrite() do i need to write a separate php function or do i need to add some code in .htaccess file. In short please tell me how to do mod_rewrite and shorten my url Thankyou
Mod rewrite is an Apache module, not PHP. You can make URLs with PHP like that but it's a lot easier with the Apache module. Check this out: http://www.sitepoint.com/apache-mod_rewrite-examples/ Should give you everything that you need.
Is it shared hosting or dedicated server ? If shared hosting ,ask your host to activate/install the same asap or if it dedicated server ,please do the same from easyapache update in cpanel . Best of Luck