Hot answers tagged .htaccess
Try adding ServerAlias www.example.com in your <VirtualHost _default_:443> section.
IMHO You're already heading the wrong direction with your intention to create a .htaccess file, which is my pet peeve, quoted from from the manual on .htaccess files: You should avoid using .htaccess files completely if you have access to httpd main server config file. Using .htaccess files slows down your Apache http server. Any directive that you can ...
Without the complete .htaccess I don't exactly know but when more processing is done within Apache adding the condition always might be needed: Header always set Access-Control-Allow-Origin "*" The manual explains it as follows: When your action is a function of an existing header, you may need to specify a condition of always, depending on which ...
Off the top of my head, try_files $uri $uri/ /index.php/$uri; should do the trick.
In .htaccess you can only cache all files from a certain extension like jpg. To cache a directory you have to specify each file within the directory in a manifest file which is linked to your html page. Your html would look like this: <!DOCTYPE html> <html manifest="manifest.appcache"> <body> ... </body> </html> Note: ...
Only top voted, non community-wiki answers of a minimum length are eligible