<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>donalyza.com &#187; .htaccess</title>
	<atom:link href="http://donalyza.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://donalyza.com</link>
	<description>Tech / Design / WordPress</description>
	<lastBuildDate>Sat, 24 Mar 2012 06:31:25 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How To: Prevent People From Spying Your Website Folder</title>
		<link>http://donalyza.com/2008/02/how-to-prevent-people-from-spying-your-website-folder/</link>
		<comments>http://donalyza.com/2008/02/how-to-prevent-people-from-spying-your-website-folder/#comments</comments>
		<pubDate>Sun, 03 Feb 2008 06:29:52 +0000</pubDate>
		<dc:creator>donalyza</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://www.donalyza.com/how-to-prevent-people-from-spying-your-website-folder/</guid>
		<description><![CDATA[Do you know that I can see the content of your site if you don’t hide them? Let’s try it to find out. Go to your address bar and type this, http://yourdomain.com/wp-content/themes/ or http://yourdomain.com/wp-content/plugins/. Ofcourse just change the word “yourdomain.com” to your domain address and you’ll know what I’m talking about. Eureka! you are exposing [...]]]></description>
			<content:encoded><![CDATA[<p>Do you know that I can see the content of your site if you don’t hide them? Let’s try it to find out.</p>
<p>Go to your address bar and type this, http://yourdomain.com/wp-content/themes/ or http://yourdomain.com/wp-content/plugins/. Ofcourse just change the word “yourdomain.com” to your domain address and you’ll know what I’m talking about.</p>
<p>Eureka! you are exposing yoursite to everyone. You don’t want others to snoop over your folders and find something interesting right? What if someone is stalking you? Will you allow them to hack your website? We all don’t want that to happen. Here’s a very easy way to prevent them from checking your website.</p>
<p>1. Open your file, .htaccess<br />
* find it in your root directory.</p>
<p>2. Just add this line<br />
<font color="#000080"><em>Options -Indexes</em></font></p>
<p>and you are good to go!</p>
<p>Very simple right?</p>
<p><font color="#ff0000">*** since we are editing a very sensitive file (.htaccess) make sure you back-up your files.</font></p>
]]></content:encoded>
			<wfw:commentRss>http://donalyza.com/2008/02/how-to-prevent-people-from-spying-your-website-folder/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to: Several ways in Forcing www or no-www in domain</title>
		<link>http://donalyza.com/2008/01/how-to-several-ways-in-forcing-www-or-no-www-in-domain/</link>
		<comments>http://donalyza.com/2008/01/how-to-several-ways-in-forcing-www-or-no-www-in-domain/#comments</comments>
		<pubDate>Mon, 21 Jan 2008 18:08:47 +0000</pubDate>
		<dc:creator>donalyza</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[.htaccess]]></category>

		<guid isPermaLink="false">http://www.donalyza.com/how-to-several-ways-in-forcing-www-or-no-www-in-domain/</guid>
		<description><![CDATA[This is one of the first thing you need to do after buying a domain. Why do we need to this? If you are thinking about search engine optimization definitely this is important. For instance, donalyza.com redirects to www.donalyza.com. The main purpose of redirecting your domain to your preferred URL is to let Google crawled [...]]]></description>
			<content:encoded><![CDATA[<p>This is one of the first thing you need to do after <a href="http://www.donalyza.com/where-to-get-a-cheap-and-free-domain-for-your-blog/">buying a domain</a>. Why do we need to this? If you are thinking about search engine optimization definitely this is important. For instance, donalyza.com redirects to www.donalyza.com. The main purpose of redirecting your domain to your preferred URL is to let Google crawled as one website. The sites that link to donalyza.com will add to the page rank of www.donalyza.com. Basically this only means that it will double your page rank score. Another factor is to avoid duplicate content in search engines.</p>
<h3><strong>3 Ways to Force www or no-www (in spirit of <a href="http://no-www.org/">no-www.org</a>)</strong></h3>
<h3><strong>1. Redirects in Cpanel 11</strong></h3>
<p>Login to your cPanel account and look for Domains section and click Redirects.  Edit  the form  using your selected URL. Click the image for better viewing.</p>
<ul>
<li>
<h4> Force www</h4>
<p><a href="http://www.donalyza.com/wp-content/uploads/2008/01/www-cpanel.jpg" title="force www in cpanel"><img src="http://www.donalyza.com/wp-content/uploads/2008/01/www-cpanel.thumbnail.jpg" alt="force www in cpanel" /></a></li>
<li>
<h4>Force no-www</h4>
<p><a href="http://www.donalyza.com/wp-content/uploads/2008/01/no-www-cpanel.jpg" title="no-www in cpanel"><img src="http://www.donalyza.com/wp-content/uploads/2008/01/no-www-cpanel.thumbnail.jpg" alt="no-www in cpanel" /></a></li>
</ul>
<h3>2. Edit your .htaccess</h3>
<p>- to edit your .htaccess, go to your ftp server and download the file. Most of the time it&#8217;s in your public_html folder. If you can&#8217;t find it create your own .htaccess provided that you enable to view your hidden files. Choose your preferred url and type the code.</p>
<ul>
<li>
<h4>Force www</h4>
</li>
<blockquote><p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} !^(.*)\.donalyza\.com$ [NC]<br />
RewriteRule ^(.*)$ http://www.donalyza.com/$1 [R=301,L]</p></blockquote>
<li>
<h4>Force no-www</h4>
</li>
<blockquote><p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^www\.donalyza\.com$ [NC]<br />
RewriteRule ^(.*)$ http://donalyza.com/$1 [R=301,L]</p></blockquote>
</ul>
<h3>3. Use of WordPress Plugin</h3>
<p>- there are times that you don&#8217;t use cPanel nor can&#8217;t edit your .htaccess. If you are using WordPress platform, make use of this plugins to simply do this stuff for you.</p>
<ul>
<li>
<h4><strong>Force www</strong></h4>
<p><strong> </strong>Justin Shattuck&#8217;s <a href="http://www.justinshattuck.com/wordpress-www-redirect-plugin/">www-redirect plugin</a></li>
<li>
<h4><strong>Force no-www</strong></h4>
<p><strong> </strong>Matt Mullenweg&#8217;s  <a href="http://photomatt.net/2006/06/13/wordpress-no-www/">a quickie no-www plugin</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://donalyza.com/2008/01/how-to-several-ways-in-forcing-www-or-no-www-in-domain/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

