Top ".htaccess" questions

Directory-level configuration file used by Apache web servers.

Getting 404 Not Found error while trying to use ErrorDocument

I know this thread has been talked a lot on the web and here, and I tried almost all the …

php apache .htaccess http-status-code-404
How can I fix the 'Missing Cross-Origin Resource Sharing (CORS) Response Header' webfont issue?

For some reason fonts have stopped rendering on my sites. The fonts are stored locally, on the same server as …

.htaccess fonts cors font-face webfonts
http to https through .htaccess

I've had a look through existing questions, but I haven't really come across anything which works for me. I'm currently …

http .htaccess redirect https
Use .htaccess to redirect HTTP to HTTPs

Please, don't recommend me the long and very detailed thread with more than 173 upvotes. It didn't work for me. I …

wordpress .htaccess http redirect https
How to Specify "Vary: Accept-Encoding" header in .htaccess

Google PageSpeed says I should "Specify a Vary: Accept-Encoding header" for JS and CSS. How do I do this in .…

.htaccess pagespeed
htaccess - How to force the client's browser to clear the cache?

For my site I have the following htaccess rules: # BEGIN Gzip <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/…

.htaccess caching gzip
enable cors in .htaccess

I have created a basic RESTful service with the SLIM PHP framework and now I'm trying to wire it up …

php apache .htaccess cors slim
Make index.html default, but allow index.php to be visited if typed in

I have the following line in my .htaccess file: DirectoryIndex index.html index.php Everytime I go to index.php …

html .htaccess
How to prevent a file from direct URL Access?

I'm using Apache and I have a sample web folder on my Local Host, like: http://localhost/test/ Files in …

regex apache .htaccess mod-rewrite hotlinking
.htaccess - how to force "www." in a generic way?

This will change domain.com to www.domain.com: # Force the "www." RewriteCond %{HTTP_HOST} !^www\.domain\.com$ [NC] RewriteRule ^(.*)$ …

.htaccess mod-rewrite