php - .htaccess mod_rewrite for dynamic url which has domain names -
i want convert url ex:( example.com/link.php?url=facebook.com ) ( example.com/facebook.com.php )
how can using .htaccess. or there other process make job easier ?
i tried adding script .htaccess file
options +followsymlinks rewriteengine on rewriterule url-(.*)\.htm$ link.php?url=$1
but converting url adding "url-" ( example.com/url-facebook.com.php )
i want remove "url-" , want make ( example.com/facebook.com.php )
rewriteengine on rewritecond %{the_request} ^get.*link\.php\?url\= [nc] rewritecond %{request_uri} !/system/.* [nc] rewriterule (.*?)link\.php\?url\=/*(.*) /$1$2 [r=301,ne,l]
not sure how above work edit of used use remove index.php url
Comments
Post a Comment