quincewyss Posted October 21, 2007 Share Posted October 21, 2007 This code works: Options +FollowSymlinks RewriteEngine on RewriteCond %{HTTP_REFERER} !^$ RewriteCond %{HTTP_REFERER} !^http://(www\.)?myspace.peakstudios.com(/)?.*$ [NC] RewriteRule .*\.(jpg|swf)$ http://peakstudios.com/qd.jpg [R,NC] But it doesn't work when I change the last line to: RewriteRule .*\.(jpg|swf)$ http://peakstudios.com/qd.php [R,NC] Does anyone know what I'm doing wrong here? Quote Link to comment https://forums.phpfreaks.com/topic/74141-htaccess-help/ Share on other sites More sharing options...
apacheguy Posted October 21, 2007 Share Posted October 21, 2007 I don't really know much about mod_rewrite, but just by looking at it I see there may be a problem: RewriteRule .*\.(jpg|swf)$ http://peakstudios.com/qd.php [R,NC] I would try changing (jpg|swf) to (php|swf) because it looks like you are defining a php page. Quote Link to comment https://forums.phpfreaks.com/topic/74141-htaccess-help/#findComment-374852 Share on other sites More sharing options...
quincewyss Posted October 21, 2007 Author Share Posted October 21, 2007 Thanks, but actully the (jpg|swf) is calling the file types that will cause the rewrite rule. Does anyone have any other ideas? Thanks! Quince Quote Link to comment https://forums.phpfreaks.com/topic/74141-htaccess-help/#findComment-374903 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.