A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Hot answers tagged


I have discovered that you can specify the version of PHP that cron should use like so: /opt/php56/bin/php -q /home/userna5/public_html/testcron.php thanks to this tutorial. All is now working as desired.


So, is a redirect to another page with 410 code fine? A redirect is not necessary. Define a custom 410 error document: ErrorDocument 410 /error-docs/e410.php And trigger the 410 in .htaccess, as you did before: RewriteRule ^deleted/ - [G] The G flag is simply a shortcut for R=410 and the L flag is not required (it is implied when using a status code ...


RewriteCond %{REQUEST_FILENAME} !^/PhP/?$ RewriteCond %{REQUEST_FILENAME} !^/forms/?$ RewriteCond %{REQUEST_URI} !^/PhP/?$ RewriteCond %{REQUEST_URI} !^/forms/?$ You don't need to check against both REQUEST_FILENAME and REQUEST_URI - you're just repeating the same check. It's easier to use REQUEST_URI (the URL-path) in this instance. The ...

Only top voted, non community-wiki answers of a minimum length are eligible