Menu .htaccess
 

How to use the .htaccess file

The .htaccess file can be used for multiple uses on your server.

404 error handling

" ErrorDocument 404 /no_find.html "

Permamant Redirect

The following was added to my .htaccess file and it works - not that I have a page with the name oldpage.html

" Redirect 301 /oldpage.html /index.html "

Banning referrers

The referrer that I would like to band is Vitaly Popov - this was related to the referrer spam.

" ## SITE REFERRER BANNING
RewriteCond %{HTTP_REFERER} semalt.com [NC,OR] "

Top

Links

References: - a note on these

  • How To Stop Referrer Spam - https://raventools.com/blog/stop-referrer-spam/ - Feb 2015
  • Referral Spam - https://raventools.com/blog/remove-google-analytics-referral-spam/ - Jan 2017 update on above
  • -
  • rewrite syntax - - apache.org
  • -
  • rewrite flags - - source
  • -
  • OR Flag - - source

Site design by Tempusfugit Web Design -