Hello. I’m getting a Internal Server Error. If I change my htaccess to htaccess.txt it all works fine. If I change it to .htaccess it throws that error. Could it be the contents of my htaccess? I assumed though that if it works fine in my server it would work in Wamp. ??? I’ve tried all the suggestions in both of these threads. http://stackoverflow.com/questions/4391530/how-to-use-htaccess-in-wamp-server and http://www.sitepoint.com/forums/showthread.php?997115-does-htaccess-works-in-wamp-local-server. Did not work. Suggestions welcome.
Also while I’m at it… A few months a go my wamp icon wont change to green. It just starts red then changes to orange. It still works. Any tricks for that?
Here are the contents of my htaccess
# UTF-8 encoding and English language all file extensions
AddDefaultCharset utf-8
AddCharset utf-8 .php .html .css .js .xml
DefaultLanguage en-US
# mod_rewrite On only needed once
RewriteEngine On
# 301 permanent redirect index.php to folder
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\\ /([^/]+/)*index\\.php\\ HTTP/
RewriteRule ^(([^/]+/)*)index\\.php$ http://www.websitecodetutorials.com/$1 [R=301,L]
# 301 permanent redirect non-www (non-canonical) to www
RewriteCond %{HTTP_HOST} !^(www\\.websitecodetutorials\\.com)?$
RewriteRule (.*) http://www.websitecodetutorials.com/$1 [R=301,L]
# Compress Files
<FilesMatch "\\.(js|css|html|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>
# Turn off ETags
Header unset ETag
FileETag None
# Cache Files 90 Days
<filesMatch "\\.(php|html|css|js|swf|pdf|xml|mp3|gif|jpg|png)$">
ExpiresActive On
ExpiresDefault "access plus 90 days"
Header append Cache-Control "public"
</filesMatch>