11 articles Server & .htaccess Page 2 / 3

Force “www” in domain and prevent hotlinking and bandwidth stealing from your website

In your .htaccess file, replace "prolificfutility.com" with your own website. The second set of rewrite conditions will allow search engines to crawl your site but redirect other requests from external sites to a single image or feel free to redirect them to another site!

Quick reference to create URL rewrites in .htaccess

If you just want to redirect an individual page, set the rewrite rules below by replacing "page1" with the page your want to redirect to, in this case it is "new-page1". The "page1" on the left can be COMPLETELY DIFFERENT than the destination file, by the way! Do you see the pattern? Notice the (.*)…

Common .htaccess settings to optimize your website

These are snippets for your .htaccess file, comments are after the # hash tags and explain what each snippet does. Replace "yoursite.com" with your actual website, of course! The "L" in the square brackets tells the server if your rule is fulfilled with a match that is the "Last" directive to follow. The "R"…

Optimize your server with caching and compression. Ideal settings for websites using WordPress, Joomla or Magento.

These are pretty standard settings, simply lines entered in your site's root .htaccess file.  Be careful modifying your .htaccess file, if you don't know what you're doing a rogue semi-colon (;) could easily take your site down and throw that dreaded "500 Server Error" -- that's not the kind of error you want your website…

Migrating Joomla articles to a new website and maintain Joomla’s legacy links with .htaccess rewrite rules

Moving from Joomla to WordPress can be easy with a little planning.  One problem is the "legacy" links from Joomla that aren't so search engine friendly.  When migrating to your new site, there are a lot of old links still out there.  You don't want to frustrate your visitors with 404 "page not found" errors…