help with .htacess to modify url

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

    help with .htacess to modify url

    how do i convert http://m.skuast.tk/?dir=saqib/mp3/MlnKY_vL/2NE1_-_I_Love_You.htm and similar url's on my site m.skuast.tk to m.skuast.tk/2NE1_-_I_Love_You.htm using .htacess . Thanx

    #2
    Originally posted by allaie View Post
    how do i convert SKUAST.TK and similar url's on my site m.skuast.tk to m.skuast.tk/2NE1_-_I_Love_You.htm using .htacess . Thanx
    htaccess code:

    RewriteEngine On
    RewriteRule ^([^/]*)\.html$ /?dir=$1 [L]

    your url be:

    Comment


      #3
      thanx a lot

      Comment


        #4
        not working see full htacess

        Not Working

        
        RewriteBase /
        RewriteEngine On

        RewriteCond %{REQUEST_URI} !-d

        RewriteCond %{REQUEST_URI} !-f

        RewriteCond %{REQUEST_URI} !\.php$

        RewriteCond %{REQUEST_URI} !\.css$

        RewriteCond %{REQUEST_URI} !\.jpg$

        RewriteCond %{REQUEST_URI} !\.png$

        RewriteCond %{REQUEST_URI} !\.gif$

        RewriteRule ^(.*)$ /$1.php [L]

        RewriteRule ^([^/]*)\.html$ /?dir=$1 [L]
        Last edited by allaie; 02.09.12, 13:17.

        Comment


          #5
          Originally posted by allaie View Post
          Not Working

          
          RewriteBase /
          RewriteEngine On

          RewriteCond %{REQUEST_URI} !-d

          RewriteCond %{REQUEST_URI} !-f

          RewriteCond %{REQUEST_URI} !\.php$

          RewriteCond %{REQUEST_URI} !\.css$

          RewriteCond %{REQUEST_URI} !\.jpg$

          RewriteCond %{REQUEST_URI} !\.png$

          RewriteCond %{REQUEST_URI} !\.gif$

          RewriteRule ^(.*)$ /$1.php [L]

          RewriteRule ^([^/]*)\.html$ /?dir=$1 [L]
          You have to edit your script too ....

          WWW.9XHOST.NET

          Comment


            #6
            Originally posted by Sanju Kr View Post
            You have to edit your script too ....
            where to edit it?

            Comment

            Working...
            X