Im Trying to Redirect a Single url
like http://tracker.niresh.co:12495/announce to http://tracker.niresh.co/announce.php
How can i get it working through htaccess ?
Im Trying to Redirect a Single url
like http://tracker.niresh.co:12495/announce to http://tracker.niresh.co/announce.php
How can i get it working through htaccess ?
RewriteEngine On
RewriteCond %{SERVER_PORT} 12495
RewriteCond %{REQUEST_URI} ^/announce
RewriteRule (.*) http://tracker.niresh.co/announce.php
mod_rewrite
has to be enabled on the server for that to work. Try executing a2enmod rewrite
(as root) and restarting Apache afterwards.