Forum Moderators: phranque
I need some advice on a rewrite rule:
Actually I have "index.php" that redirects to http://www.example.net/cover/ , "cover" is an internal rewrite:
RewriteRule ^cover/$ somedir/index.php [nc]
But I want to remove the cover rewrite, and when people enter to site http://www.example.net (without the "/cover/") rewrite internally to /somedir/index.php
I test the following rule and it works but don't know if this will bring up another problems:
RewriteRule ^$ somedir/index.php [nc]
Can you help me please?
Thanks in advance!
This seems more a server load issue than anything else. It seems that every time someone comes to the front door of your site they fire the under the hood redirect. Could UNIX be handy here and the option of setting up a symbolic link instead? [scism.sbu.ac.uk...]
cheers, mat
This config error file will never be served unless you accidentally delete your .htaccess file, delete the rewriterule in that file, or make a coding error that prevents mod_rewrite from running, or if your FTP upload of a modified .htaccess fails due to a network problem. If any of those things happen, having this "error file" might save you from the site being down all day if you forget to check it after each upload.
I do check my site after each upload, but I also have a similar error file in place in case I forget and something goes wrong. I call it being thorough - Fix or handle possible problems ahead of time if you can.
Jim