3

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 ?

1 Answer 1

3
RewriteEngine On 
RewriteCond %{SERVER_PORT} 12495
RewriteCond %{REQUEST_URI} ^/announce 
RewriteRule (.*) http://tracker.niresh.co/announce.php
2
  • I have applied the code but doesnt seems to be working
    – Niresh
    Nov 23, 2013 at 14:40
  • @user1862521 mod_rewrite has to be enabled on the server for that to work. Try executing a2enmod rewrite (as root) and restarting Apache afterwards.
    – n.st
    Nov 23, 2013 at 17:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .