Forum Moderators: phranque
RewriteRule) to fetch the content from the real location inside the server. RewriteRule) so that if anything asks for the "wrong" version of the URL the server sends a 301 redirect telling the browser or bot to make a new request for the correct URL. !\.(css|js|png|jpe?g|gif|zip|txt)$ (requests that you are never going to rewrite) or you could change the (.*) pattern to be more specific; e.g. ^([0-9a-z]+)$ or ^([^/.]+)$ or similar (so it matches only requests that will be rewritten), and then do away with the slow and inefficient -f and -d "exists" checks completely. You can make this more efficient by adding a preceding RewriteCond that checks to see that the request doesn't end in various extensions; e.g. !\.(css|js|png|jpe?g|gif|zip|txt)$ (requests that you are never going to rewrite)
RewriteCond %{REQUEST_FILENAME}\.html -f Can you give me directons and copy to paste code to put in my htaccess file?
I am a n00b at this.All the more reason why you should learn exactly what the code does and how it works. This is server configuration code. A single typo can put your site offline. You need to know how your code works.