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
help with .htacess to modify url
Started on the old forum in September 2012 · view the original in the archive · old links redirect here
allaie wrote: 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:
http://m.skuast.tk/saqib/mp3/MlnKY_vL/2NE1_-_I_Love_You.htm.html
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]
allaie wrote: 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 ....