I am creating a web page using php. Where i created a clean url by htaccess
techoming.com/videos
Now i want to add a get variable such as
techoming.com/videos?cat=fun
Please help me here
I am creating a web page using php. Where i created a clean url by htaccess
techoming.com/videos
Now i want to add a get variable such as
techoming.com/videos?cat=fun
Please help me here
Here's a basic way to make that work: add this to your htaccess.
RewriteEngine on
RewriteRule ^videos/([A-Za-z0-9_-]*)$ /videos.php?cat=$1 [L]
Users will see http://www.website.com/videos/fun but your server will process that link as http://www.website.com/videos?cat=fun