Hi,
how to make a RewriteRule when the variable is a URL?
example:
http://www.mydomain.com/redirect.php?ur ... google.com
i want to convert to:
http://www.mydomain.com/url/http://www.google.com
thanks
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^url/http:/(.+)$ /redirect.php?url=http://$1 [QSA,L]
RewriteRule ^code/([^/]+)/?$ get_link.php?pl=$1 [NC,L]
RewriteRule ^([^/]+)/?$ get_link.php?pl=$1 [NC,L]
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^url/http:/(.+)$ /redirect.php?url=http://$1 [QSA,L]
# Ignore requests to existing files.
RewriteCond %{SCRIPT_FILENAME} !-f
# Ignore requests to existing directories.
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /get_link.php?pl=$1 [QSA,L]
RewriteRule ^([^/]+)/?$ get_link.php?pl=$1 [NC,L]
RewriteCond %{REQUEST_URI} user
RewriteRule ^user/?$ user.php [NC,L]
RewriteCond %{REQUEST_URI} login
RewriteRule ^login/?$ login.php [NC,L]
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(login|user)/?$ /$1.php [QSA,L]
RewriteRule ^url/http:/(.+)$ /redirect.php?url=http://$1 [QSA,L]
# Ignore requests to existing files.
RewriteCond %{SCRIPT_FILENAME} !-f
# Ignore requests to existing directories.
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/?$ /get_link.php?pl=$1 [QSA,L]
Users browsing this forum: No registered users and 100 guests