heloo masterz i need a help i want to rewrite my URL with the help of .htacess file please help me i will show a example here : if link mobilesite.com/index.php?dir=games i want that in site it shows mobilesite.com/games please reply i must thankfully to you
please help in .htacess rewrite rule
Started on the old forum in October 2011 · view the original in the archive · old links redirect here
ok then U can do it this way
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^([0-9A-Za-z\\]+)$ /index.php?dir=$1
here,any thing starting with both aphanumeric characters and / will be sent to the folder with the same name in the url.so eg if my url is http://kloudserve.net/mp3 then my folder name should be mp3