PhilipK Posted June 18, 2011 Share Posted June 18, 2011 I have an .htaccess which redirects users when a file is not found. http://daroom.info/No-File-9dioahjfda It works but if the missing file is in a directory it bugs out. http://daroom.info/wordpress/Bad-File-fdkaljfdklaj Here is my current .htaccess file RewriteEngine On Options +Multiviews +FollowSymLinks ErrorDocument 404 /random.php Options +FollowSymlinks RewriteEngine on RewriteCond %{http_host} ^www\.daroom\.info [NC] RewriteRule ^(.*)$ http://daroom.info/$1 [R=301,NC] RewriteRule http://daroom.info/index.php?rand=$1 [L] Quote Link to comment https://forums.phpfreaks.com/topic/239742-need-help-editing-htaccess/ Share on other sites More sharing options...
requinix Posted June 18, 2011 Share Posted June 18, 2011 RewriteRule http://daroom.info/index.php?rand=$1 [L] Explanation for what that's supposed to do? Quote Link to comment https://forums.phpfreaks.com/topic/239742-need-help-editing-htaccess/#findComment-1231584 Share on other sites More sharing options...
PhilipK Posted June 20, 2011 Author Share Posted June 20, 2011 I figured out my problem was seperate form the .htaccess as for that line of code its something I have removed as I found it it wasn't working. Quote Link to comment https://forums.phpfreaks.com/topic/239742-need-help-editing-htaccess/#findComment-1231969 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.