I have a redirect script that redirects with this url
[B][url]http://my-domain.com/URL.php?url=http://www.google.com
I want to rewrite the url as
[B][url]http://my-domain.com/?url=http://www.google.com
or
[B][url]http://my-domain.com/?http://www.google.com
I know this can be done with .htaccess so i tried some codes myself. I created a .htaccess file in my web directory and i put some code eg:
<FilesMatch “^.
Order allow,deny
Deny from all
</FilesMatch>
RewriteEngine on
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^url/(.*)$ /URL.php?url=$1 [L]
But still it’s not working, I mean it works when i use yoursite.co/url/?url=