<?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>PHP Freelancer &#187; .htaccess</title>
	<atom:link href="http://php-freelancer.in/category/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://php-freelancer.in</link>
	<description></description>
	<lastBuildDate>Mon, 30 Jan 2012 13:31:07 +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 Change .htaccess File Name</title>
		<link>http://php-freelancer.in/2011/05/16/how-to-change-htaccess-file-name/</link>
		<comments>http://php-freelancer.in/2011/05/16/how-to-change-htaccess-file-name/#comments</comments>
		<pubDate>Mon, 16 May 2011 21:20:51 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[change .htaccess file name]]></category>
		<category><![CDATA[rename .htaccess file]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=266</guid>
		<description><![CDATA[Hi Friends, I think this article title is looking very surprised to you because when i knew this thing I also was little bit surprised that we can change .htaccess name and get it worked by assigning other name like &#8216;.configuration&#8217; or &#8216;.serverconfig&#8217; or &#8216;.urlrewritefile&#8217; , So if you want to change .htaccess file name &#8230; <a href="http://php-freelancer.in/2011/05/16/how-to-change-htaccess-file-name/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi Friends, I think this article title is looking very surprised to you because when i knew this thing I also was little bit surprised that we can change .htaccess name and get it worked by assigning other name like &#8216;.configuration&#8217; or &#8216;.serverconfig&#8217; or &#8216;.urlrewritefile&#8217; , So if you want to change .htaccess file name and get it worked by other name then you have to edit your server https.conf file and you have to add one line by which you can change .htaccess file name for your server.<span id="more-266"></span></p>
<p>You just have to add below line in https.conf file :</p>
<p><code>AccessFileName [filename]</code></p>
<p>Now example :</p>
<div id="in_post_ad_middle_1" style="text-align:center;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8444019803708971";
/* Middleofpost */
google_ad_slot = "5399229243";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p><code>AccessFileName .configuration</code></p>
<p>After adding this line to your https.conf your site will use .configuration file instead of .htaccess.</p>
<p>I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.</p>
<blockquote><p>Also I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than  4 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p></blockquote>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/05/16/how-to-change-htaccess-file-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Enable .htaccess Or Rewrite Mode On Apache</title>
		<link>http://php-freelancer.in/2011/05/16/how-to-enable-htaccess-or-rewrite-mode-on-apache/</link>
		<comments>http://php-freelancer.in/2011/05/16/how-to-enable-htaccess-or-rewrite-mode-on-apache/#comments</comments>
		<pubDate>Mon, 16 May 2011 13:51:20 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[enable .htaccess on apache server]]></category>
		<category><![CDATA[enable .htaccess or mod_rewrite on apache server]]></category>
		<category><![CDATA[enable mod_rewrite on apache server]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=263</guid>
		<description><![CDATA[Hi Friends, In this article I am going to explain you how can we enable .htaccess  or rewrite mode on Apache server. So to enable .htaccess or mode rewrite on apache server we will need access to httpd.conf file by which we can enable .htacess /mod rewrite. .htaccess files allows us to change configurations on our &#8230; <a href="http://php-freelancer.in/2011/05/16/how-to-enable-htaccess-or-rewrite-mode-on-apache/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi Friends, In this article I am going to explain you how can we enable .htaccess  or rewrite mode on Apache server. So to enable .htaccess or mode rewrite on apache server we will need access to httpd.conf file by which we can enable .htacess /mod rewrite. .htaccess files allows us to change configurations on our servers per directory or subdirectory, So to enable .htaccess file or mod_rewrite we have to edit httpd.conf file and remove comment from mod_rewrite line, So you have to change this line from<span id="more-263"></span> :</p>
<p><code>;LoadModule rewrite_module modules/mod_rewrite.so</code></p>
<p>to (to remove comment remove semi column from left side)</p>
<p><code>LoadModule rewrite_module modules/mod_rewrite.so</code></p>
<p>Also we need to change the AllowOverride directive also from</p>
<p><code>&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
Order deny,allow<br />
Deny from all<br />
Satisfy all<br />
&lt;/Directory&gt;</code></p>
<div id="in_post_ad_middle_1" style="text-align:center;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8444019803708971";
/* Middleofpost */
google_ad_slot = "5399229243";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>to</p>
<p><code>&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride All<br />
Order deny,allow<br />
Deny from all<br />
Satisfy all<br />
&lt;/Directory&gt;<br />
</code></p>
<p>So now you know how can we enable .htaccess or mod_rewrite on apache server.</p>
<p>I hope this post helpful for someone. If you have any question then you can ask me anytime or post it in comment.</p>
<blockquote><p>Also I am <a href="http://php-freelancer.in">PHP Freelancer</a>, <a href="http://php-freelancer.in">Freelance PHP Developer</a> having more than  4 years of experience, So if you want to do any projects then you can <a href="http://php-freelancer.in/contact-me/" target="_blank">contact me</a>.</p></blockquote>
<blockquote><p><span style="color: #008000;"><a style="color: #008000;" href="http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=ankugandhi">Hostgator Hosting</a> in 1 Cent Coupon Code &#8211; &#8220;1CENTHECOUPON&#8221; (Without Quotes).</span></p></blockquote>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/05/16/how-to-enable-htaccess-or-rewrite-mode-on-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Change Different PHP Version By .htaccess</title>
		<link>http://php-freelancer.in/2011/04/30/how-to-change-different-php-version-by-htaccess/</link>
		<comments>http://php-freelancer.in/2011/04/30/how-to-change-different-php-version-by-htaccess/#comments</comments>
		<pubDate>Sat, 30 Apr 2011 10:14:50 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[use php 5 by htaccess]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=256</guid>
		<description><![CDATA[Hi Friends, In this article I will explain how can we change version of PHP by htaccess. Sometime some application need php version 5 instead of 4 and on server php4 version used by default but If php5 already installed on server then we can use php5 version by putting one line in .htaccess file. &#8230; <a href="http://php-freelancer.in/2011/04/30/how-to-change-different-php-version-by-htaccess/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hi Friends, In this article I will explain how can we change version of PHP by htaccess. Sometime some application need php version 5 instead of 4 and on server php4 version used by default but If php5 already installed on server then we can use php5 version by putting one line in .htaccess file.<span id="more-256"></span></p>
<p>If you want to use php5 version for a particular application and on server php4 and php5 both are available and php4 is by default , So to use php5 for that application follow these rules :<br />
For e.g. our site application is in http://example.com/php5/ right now it is using php4 but you want to use php5 for this then,</p>
<p>1.  Make one .htaccess file in http://example.com/php5/ if not exists.</p>
<div id="in_post_ad_middle_1" style="text-align:center;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8444019803708971";
/* Middleofpost */
google_ad_slot = "5399229243";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>2.  Now put one line given below in .htaccess file.</p>
<p><code>AddHandler application/x-httpd-php5 .php .php5 .php4 .php3</code><br />
Or<br />
<code>AddHandler x-httpd-php5 .php</code></p>
<p>You can try both one by one in case if any one is not working.</p>
<p>Now check your application site, It will use php5 version. Only this application will use php5 because we put htaccess which have php5 rule in this folder.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2011/04/30/how-to-change-different-php-version-by-htaccess/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remove index.php From URL By URL Rewriting Or htaccess Rule To Remove Index.php</title>
		<link>http://php-freelancer.in/2010/08/04/remove-index-php-from-url-by-url-rewriting-or-htaccess-rule-to-remove-index-php/</link>
		<comments>http://php-freelancer.in/2010/08/04/remove-index-php-from-url-by-url-rewriting-or-htaccess-rule-to-remove-index-php/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 17:11:23 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Remove index.php From URL By URL Rewriting]]></category>

		<guid isPermaLink="false">http://php-freelancer.in/?p=135</guid>
		<description><![CDATA[Hello Friends, Today i was working on one project in which I have to remove index.php from URL because http://example.com/index.php and http://example.com/ both are same but technically google consider it different URLs, There is one other method by which we can tell google about one best URL which is canonical tag. But I want to &#8230; <a href="http://php-freelancer.in/2010/08/04/remove-index-php-from-url-by-url-rewriting-or-htaccess-rule-to-remove-index-php/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hello Friends, Today i was working on one project in which I have to remove index.php from URL because http://example.com/index.php and http://example.com/ both are same but technically <a href="http://www.google.com/" class="kblinker" target="_blank" title="More about google &raquo;">google</a> consider it different URLs, There is one other method by which we can tell google about one best URL which is canonical tag. But I want to do it via URL rewriting and remove index.php from URL means when anyone enters http://example.com/index.php it redirects to http://example.com/ , I have searched alot and finally I found it So i thought it would be great if I share it on this site, So it can be helpful to someone<span id="more-135"></span>.</p>
<p>Below is the rule of .htaccess by which you can remove index.php from URL means if anyone enters http://example.com/index.php it redirects to http://example.com/.</p>
<div id="in_post_ad_middle_1" style="text-align:center;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8444019803708971";
/* Middleofpost */
google_ad_slot = "5399229243";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p><code>RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} /([^/]+/)*index.php HTTP/<br />
RewriteRule ^(([^/]+/)*)index.php$ http://www.%{HTTP_HOST}/ [R=301,NS,L]</code></p>
<p>Above are the two rules by which you can redirect index.php to root directory. If you have any problems in these rules then you can <a href="http://php-freelancer.in/contact-me/" class="kblinker" title="More about contact me &raquo;">contact me</a> or post it into comments.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2010/08/04/remove-index-php-from-url-by-url-rewriting-or-htaccess-rule-to-remove-index-php/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Non WWW to WWW and WWW to Non WWW Redirect By .htaccess</title>
		<link>http://php-freelancer.in/2009/12/27/non-www-to-www-and-www-to-non-www-redirect-by-htaccess/</link>
		<comments>http://php-freelancer.in/2009/12/27/non-www-to-www-and-www-to-non-www-redirect-by-htaccess/#comments</comments>
		<pubDate>Sun, 27 Dec 2009 14:22:53 +0000</pubDate>
		<dc:creator>Ankur</dc:creator>
				<category><![CDATA[.htaccess]]></category>
		<category><![CDATA[Non WWW to WWW]]></category>
		<category><![CDATA[Non WWW to WWW redirect]]></category>
		<category><![CDATA[URL redirect by .htaccess]]></category>
		<category><![CDATA[URL redirect to www]]></category>
		<category><![CDATA[URL redirection to non www]]></category>
		<category><![CDATA[WWW to Non WWW]]></category>
		<category><![CDATA[WWW to Non WWW redirect]]></category>

		<guid isPermaLink="false">http://www.phpzone.net/?p=16</guid>
		<description><![CDATA[Hello Friends, Yesterday i got one problem in domain name with www and also without www (non www). Our site URL with WWW and without WWW is very important for seo purposes and also for google. According to Matt Cutts url canonicalization article we have only one url for whole site like with www or &#8230; <a href="http://php-freelancer.in/2009/12/27/non-www-to-www-and-www-to-non-www-redirect-by-htaccess/">Read more <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Hello Friends, Yesterday i got one problem in domain name with www and also without www (non www). Our site URL with WWW and without WWW is very important for seo purposes and also for <a href="http://www.google.com/" class="kblinker" target="_blank" title="More about google &raquo;">google</a>. According to Matt Cutts url canonicalization article we have only one url for whole site like with www or without www. If you are using site url&#8217;s with www then non www urls should have 301 permanent redirect to www urls. So to do that first you have to check that your dedicated web server support URL rewriting or not<span id="more-16"></span>? If you want to check that your server supports URL rewriting or not then make one php file and after that paste code shown below :</p>
<blockquote><p>&lt;?php</p>
<p>phpinfo();</p>
<p>?&gt;</p></blockquote>
<p>Upload this file to server and check this file in browser. When you open this file in browser you will see so many configuration settings in that file so just try to find out &#8220;mod_rewrite&#8221; (without quotes) in that file. If you find that string then your server haveing URL rewriting enabled but if you don&#8217;t find that string then your server not having URL rewriting enabled. To enabled URL rewriting you have to mail to your hosting or some hosting provide URL rewriting enable/disable option in cPanel-&gt;Settings.</p>
<p><strong>Non WWW to WWW Redirect</strong></p>
<p>Now we suppose that URL rewriting is enable on server and we want our all urls redirected from non www to www. Now make one file .htaccess (If not exists on server) and put code shown below :</p>
<blockquote><div id="in_post_ad_middle_1" style="text-align:center;margin: 5px;padding: 0px;"><script type="text/javascript"><!--
google_ad_client = "ca-pub-8444019803708971";
/* Middleofpost */
google_ad_slot = "5399229243";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^yourwebsite.com [NC]<br />
RewriteRule ^(.*)$ http://www.yourwebsite.com/$1 [L,R=301]<br />
&lt;/IfModule&gt;</p></blockquote>
<p>After putting this code in .htaccess upload it to root folder of your server. <strong>Please don&#8217;t forget to put your website/your domain name instead of yourwebsite.com in that code.</strong></p>
<p><strong>WWW to Non WWW Redirect </strong></p>
<p>To redirect from www to non www urls you must put down code shown below :</p>
<blockquote><p>&lt;IfModule mod_rewrite.c&gt;<br />
RewriteEngine On<br />
RewriteBase /<br />
RewriteCond %{HTTP_HOST} ^www.yourwebsite.com [NC]<br />
RewriteRule ^(.*)$ http://yourwebsite.com/$1 [L,R=301]<br />
&lt;/IfModule&gt;</p></blockquote>
<p><strong>Again please don&#8217;t forget to put your website/your domain name instead of yourwebsite.com in code.</strong></p>
<p>By this way you can redirect your site urls from www to non www or non www to www. For more information on URL canonicalization read Matt Cutts url canonicalization article.</p>
<div style='clear:both'></div>]]></content:encoded>
			<wfw:commentRss>http://php-freelancer.in/2009/12/27/non-www-to-www-and-www-to-non-www-redirect-by-htaccess/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced

Served from: php-freelancer.in @ 2012-02-06 21:31:31 -->
