please help in .htacess rewrite rule

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    please help in .htacess rewrite rule

    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

    #2
    Try this out
    Code:
     RewriteEngine on
    RewriteBase /
    RewriteRule ^games/$ /index.php?dir=$1
    Last edited by Donostex; 21.10.11, 07:13.

    Comment


      #3
      ok then U can do it this way

      Code:
      <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

      then my folder name should be mp3

      Comment


        #4
        Thanks bro its working

        Comment

        Working...
        X