.htaccess tutorial

htaccess Elite


Help With .htaccess File

How to Cache, and Optimize your sites and servers

Help With .htaccess File

New postby BradNey » 19 Oct 2009 20:04

Hi HtAccessElite,

I'd really like help with my .htaccess file.. any edit I seem to do creates a 500 Internal Server Error.

I'm running Wordpress, btw.

Here is what I'd like to add:

<FilesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
</FilesMatch>
To make any visitor cache images and css files


Here is what I currently have in the file:

# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
RewriteEngine On
RewriteRule ^go/([a-zA-Z0-9_-]*)/?$ /index.php?gocode=$1 [L,R]
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName bradblogging.com
AuthUserFile /home/bradblog/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/bradblog/public_html/_vti_pvt/service.grp
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

Thanks,

Brad Ney @ BradBlogging.com
BradNey
 
Posts: 1
Joined: 19 Oct 2009 19:59

Return to Caching and Optimizing