This .htaccess file is supposed to:
- Serve the file if it exists.
- Otherwise, redirect to [login to view URL]
It used to work. After moving servers (probably with a new version of Apache) it does not.
Your task: Load this .htaccess file on an Apache server and get it working!
--------
AddHandler application/x-httpd-php52 .php
RewriteEngine On
RewriteBase /
# These would be for a simple caching mechanism
#RewriteRule ^$ [login to view URL] [QSA]
#RewriteRule ^([^.]+)$ $[login to view URL] [QSA]
# Make sure they're on the www domain
RewriteCond %{HTTP_HOST} ^staticize\.com
RewriteRule ^(.*)$ [login to view URL]$1 [R=permanent,L]
# If the file can't be served by Apache, rewrite to [login to view URL]
RewriteCond %{REQUEST_FILENAME} !-F
RewriteCond %{REQUEST_URI} !favicon\.ico
RewriteRule ^(.*)$ [login to view URL] [QSA,L]
RewriteRule ^$ [login to view URL] [QSA]
ExpiresActive On
ExpiresByType image/gif A2592000
ExpiresByType image/jpeg A2592000
ExpiresByType image/png A2592000
#
# Example:
# ErrorDocument 500 /[login to view URL]
-----------
Hello,
I have extensive experience with Apache and its modules that take directives from the htaccess file, so I can work with you to fix the issues you are experiencing.
If you would like to contact me so we can go over some of the details and then we can confirm from there.
Thank you.
This has nothing to do with Apache version, the .htaccess is working(confirmed on two distinct setups) as it.
our server is not Apache at all, it's :cloudflare-nginx: for which .htaccess is a dummy file and does nothing at all.
Everything has to be rewritten for nginx and added to the vconfig file for the domain.
Regards,
Dobri
Hi. This is not a canned response. It's an easy fix! I have 20 years of Linux experience, so I've been doing this for a long time. I'm maintaining 3000+ KVM virtual machines for a large retail customer(from Argentina) and deployed thousands of Linux containers. I'm also maintaining Linux servers for many companies with their entire infrastructure on AWS and GCE. I know how to monitor and optimize LAMP and LEMP stacks and I've been doing WPO as long as I can remember. I'm very security conscious and an automation enthusiast. I can document everything in detail and create a screencast of my sessions. Can help you in no time, just let me know.
++ This is my job. I'm ready to begin now. Pm for me. Thanks Looking forward to hear from you, Feel free to talk about this interesting stuff, give us any questions you have to know more about us ;-) Thanks Oleg!