Mod Rewrite
Posted: Tue Aug 21, 2007 2:46 am
Currently i have a site structure like http://www.example.com/news.php?cat=1&ID=53
Now i want it to look like
http://www.example.com/news/1/53 or similar
I have heard that this can be performed incase of Apache using modrewrite
My problem is that i have already mentioned http://www.example.com/news.php?cat=1&ID=53 in many scripts and cannot change it... or i don't want to. just want that when user goes to http://www.example.com/news.php?cat=1&ID=53 the url he views on browser be http://www.example.com/news/1/53
And if i want to make my own extension such as .kkonline then that to is possible without changing the links that already exist?
Is that possible? How? give me some tips on modrewrite too if any. Or where can i get easy touse tutorial for modrewrite (.htaccess file i guess has to be changed. Correct?)
Now i want it to look like
http://www.example.com/news/1/53 or similar
I have heard that this can be performed incase of Apache using modrewrite
My problem is that i have already mentioned http://www.example.com/news.php?cat=1&ID=53 in many scripts and cannot change it... or i don't want to. just want that when user goes to http://www.example.com/news.php?cat=1&ID=53 the url he views on browser be http://www.example.com/news/1/53
And if i want to make my own extension such as .kkonline then that to is possible without changing the links that already exist?
Is that possible? How? give me some tips on modrewrite too if any. Or where can i get easy touse tutorial for modrewrite (.htaccess file i guess has to be changed. Correct?)