Category Archives: htaccess

Web fonts not showing up on your WordPress site?

Don’t you hate it when you spend 30 minutes on an issue, and when you finally find the answer, you go… oh yea, now I remember? I had some custom fonts on my site that I was loading using @font-face. … Continue reading

Posted in htaccess, Web Fonts | Tagged , , , , | Comments Off on Web fonts not showing up on your WordPress site?

.htaccess – redirect domain to a subfolder.

.htaccess – redirect domain to a subfolder. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$ RewriteRule ^(/)?$ subfolder [L] Here is a working example. This redirects a request for “designbytroy.com” to a subfolder called “designbytroy”. RewriteEngine On RewriteCond %{HTTP_HOST} ^(www.)?designbytroy.com$ RewriteRule ^(/)?$ designbytroy[L]

Posted in htaccess, Web Dev | Tagged , , | Leave a comment

How to prevent or allow directory listing?

Options +Indexes [The above line enables Directory listing.] Options –Indexes [The above disables directory listing for your web site.] http://www.besthostratings.com/articles/prevent-directory-listing.html

Posted in htaccess | Tagged , | Leave a comment