inversesoft123 Posted March 29, 2010 Share Posted March 29, 2010 Hello all, I am using this to add www. to my domain RewriteEngine on rewritecond %{HTTP_HOST} ^mydomain.com [nc] rewriterule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc] But my problem is there is another redirection rule for url shortner. when I add above rule to .htaccess url shortner stops working. Please help me to solve this problem. URL Shortner rule RewriteEngine On RewriteRule ^shortit/(.*)$ shortitnow.php?longurl=$1 [L] RewriteRule ^([0-9a-zA-Z]{1,6})$ redirectshorttolong.php?url=$1 [L] Thanks in advance Link to comment https://forums.phpfreaks.com/topic/196904-permenant-redirection-vs-url-shortner-problem/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.