Posted on 04 December 2011. Tags: .htaccess, word press, wp
Recently I’ve become more and more interested in the .htaccess file as a way to speed up and protect your site. Previously here on WPShout I’ve written an “A to Z of WordPress .htaccess Hacks”, which has been a very popular post, and today we’re going to look at ten easy methods to speed up WordPress with the .htaccess file. Not all of these applyspecifically to WordPress; you could easily apply most of these to any other site.
Continue Reading
Posted in .htaccess, PHP
Posted on 11 November 2011.
I commented out the RewriteRule in my .htaccess file and created a new WP_Rewrite rule in my WP theme’s functions.php file. This effectively accomplishes the same thing, but ensures that WordPress is aware of the ‘extra’ querystring variables (so they’re not lost or ignored).
Continue Reading
Posted in .htaccess, HTML - XHTML, PHP
Posted on 11 November 2011. Tags: .htaccess
As a web designer or developer, it is important to know how to use the htaccess file to your advantage. It is a very powerful tool, and can even work as a deterrent for bandwidth thieves, exploits, and hackers. Below are some common examples of rules to consider when developing websites. We hope you find them useful.
Continue Reading
Posted in .htaccess
Posted on 04 November 2011. Tags: .htaccess, html, PHP
When a web page is accessed, the server checks the extension to know how to handle the page. Generally speaking if it sees a .htm or .html file, it sends it right to the browser because it doesn’t have anything to process on the server. If it sees a .php extension (or .shtml, or .asp, etc), it knows that it needs to execute the appropriate code before passing it along to the browser.
Continue Reading
Posted in .htaccess, HTML - XHTML, PHP
Posted on 31 October 2011.
The Mod Rewrite Generator can be used to turn dynamic URLs into search engine friendly static URLs. Static URLs typically rank better in search engines than long complex dynamic URLs with lots of parameters, they are easier to index in the first place and they’re also friendlier looking to the end user.
Continue Reading
Posted in .htaccess
Posted on 31 October 2011.
Continuing our review of htaccess files, today we’ll examine how to use mod_rewrite to create pretty URLs.
Continue Reading
Posted in .htaccess
Posted on 31 October 2011. Tags: .htaccess
mod_rewrite rules are the power of apache which lets you to do magic withredirection. Using mod_rewrite rule you can create SEO friendly URL’s, forward specific request to any other domain, restrict access to webpages or website based on user agent and much more.
Continue Reading
Posted in .htaccess
Posted on 15 March 2011. Tags: .htaccess
If you want to redirect all non-www requests to your site to the www version, all you need to do is add the following code to your .htaccess file:
Continue Reading
Posted in .htaccess
Posted on 22 February 2011. Tags: .htaccess, PHP
Posted in .htaccess, PHP