<?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>Open Script Solution&#187; htaccess</title>
	<atom:link href="http://www.openscriptsolution.com/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.openscriptsolution.com</link>
	<description>... where solutions for script programming are found ...</description>
	<lastBuildDate>Tue, 31 Jan 2012 03:22:52 +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>Redirecting URL Without www to URL With www Using .htaccess File</title>
		<link>http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/</link>
		<comments>http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 05:36:07 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[consistency]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[HTTP_POST]]></category>
		<category><![CDATA[IfModule]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[prefix]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[RewriteBase]]></category>
		<category><![CDATA[RewriteCond]]></category>
		<category><![CDATA[RewriteEngine]]></category>
		<category><![CDATA[RewriteRule]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[visitor]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[www]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=610</guid>
		<description><![CDATA[Today I learnt something new again about how to redirect my website if the visitors type in their browser such as this address: http://openscriptsolution.com (without prefix www.) then the browser will be automatically redirected it to the http://www.openscriptsolution.com (with prefix www.). This is very important for those of you who have the website, since you [...]]]></description>
			<content:encoded><![CDATA[<p>Today I learnt something new again about how to redirect my website if the visitors type in their browser such as this address: http://openscriptsolution.com (without prefix www.) then the browser will be automatically redirected it to the http://www.openscriptsolution.com (with prefix www.). This is very important for those of you who have the website, since you have to decide which URL that you will use for the consistency of your URL. In addition, Google loves the consistency of the URL that we used for our website. That&#8217;s what I have heard and known from Internet. So, here is the code how you can do that for your website by using .htaccess file. <span id="more-610"></span></p>
<ol>
<li>
Open your <strong>.htaccess</strong> file that located inside your web root directory, and then add this following code into that file:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.openscriptsolution\.com [NC]
RewriteRule ^(.*)$ http://www.openscriptsolution.com/$1 [L,R=301]
&lt;/IfModule&gt;</pre></div></div>

</li>
<li>
Now when your visitors type http://openscriptsolution.com in their browser, then it will be automatically redirected it to the address: http://www.openscriptsolution.com.
</li>
</ol>
<p>Hopefully this will be helpful for you.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F17%2Fredirecting-url-without-www-to-url-with-www-using-htaccess-file%2F&amp;title=Redirecting%20URL%20Without%20www%20to%20URL%20With%20www%20Using%20.htaccess%20File" id="wpa2a_2"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/17/redirecting-url-without-www-to-url-with-www-using-htaccess-file/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Another Solution to Redirect from Old URL to New URL Using Simple 301 Redirects Plugin</title>
		<link>http://www.openscriptsolution.com/2009/10/05/another-solution-to-redirect-from-old-url-to-new-url-using-simple-301-redirects-plugin/</link>
		<comments>http://www.openscriptsolution.com/2009/10/05/another-solution-to-redirect-from-old-url-to-new-url-using-simple-301-redirects-plugin/#comments</comments>
		<pubDate>Mon, 05 Oct 2009 13:12:44 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[redirect 301]]></category>
		<category><![CDATA[Simple 301 Redirects]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=500</guid>
		<description><![CDATA[Today I found another solution that worked really fine to redirect from old URL to new URL permanently by using Simple 301 Redirects plugin. I have tested this plugin and it worked like a charm. Before I found this plugin, I had tried to use the redirect 301 by using .htaccess file, but unfortunately, it [...]]]></description>
			<content:encoded><![CDATA[<p>Today I found another solution that worked really fine to redirect from old URL to new URL permanently by using <a href="http://wordpress.org/extend/plugins/simple-301-redirects/"><strong>Simple 301 Redirects plugin</strong></a>. I have tested this plugin and it worked like a charm. Before I found this plugin, I had tried to use the <a href="http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/" target="_blank">redirect 301 by using .htaccess file</a>, but unfortunately, it did not work. <span id="more-500"></span></p>
<p>Here was the quote from <a href="http://www.scottnelle.com/simple-301-redirects-plugin-for-wordpress/" target="_blank">the author&#8217;s website</a>:</p>
<blockquote><p>
Simple 301 Redirects provides an easy method of redirecting requests to another page on your site or elsewhere on the web. It’s especially handy when you migrate a site to WordPress and can’t preserve your URL structure. By setting up 301 redirects from your old pages to your new pages, any incoming links will be seemlessly passed along, and their pagerank (or what-have-you) will be passed along with them.</p>
<p>The redirects work similar to Apache 301 redirects where you specify the path that you want to forward (e.g. “/about.htm”) and the full URL of the destination (e.g. “http://www.sitedomain.com/about/”.) This means that in addition to forwarding between paths on your site, you can also forward to external sites. So you might also use the plugin as a URL shortener (”/video/” could forward to your YouTube channel, for example.)</p></blockquote>
<p>Hopefully this will be helpful for those of you who encountered the same problem while migrating from the old website to the new website which has the different URL structure.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F05%2Fanother-solution-to-redirect-from-old-url-to-new-url-using-simple-301-redirects-plugin%2F&amp;title=Another%20Solution%20to%20Redirect%20from%20Old%20URL%20to%20New%20URL%20Using%20Simple%20301%20Redirects%20Plugin" id="wpa2a_4"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/05/another-solution-to-redirect-from-old-url-to-new-url-using-simple-301-redirects-plugin/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Auto Redirect From The Old URL to The New URL of My Website</title>
		<link>http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/</link>
		<comments>http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 01:23:38 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[auto]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[migrate]]></category>
		<category><![CDATA[new]]></category>
		<category><![CDATA[old]]></category>
		<category><![CDATA[redirect]]></category>
		<category><![CDATA[url]]></category>
		<category><![CDATA[website]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=493</guid>
		<description><![CDATA[I was migrating my articles from my old website which not using WordPress to the new one that using WordPress. Just for your information, the domain of that my website was not changed. Only the URL of all my articles on the old website that become being changed on my new website, and with the [...]]]></description>
			<content:encoded><![CDATA[<p>I was migrating my articles from my old website which not using WordPress to the new one that using WordPress. Just for your information, the domain of that my website was not changed. Only the URL of all my articles on the old website that become being changed on my new website, and with the new structure, indeed. Then I found the technique how to redirect from the old URL to the new URL by optimizing the .htaccess file. The following code will show you how you can do this if you encounter the same problem some other time. <span id="more-493"></span></p>
<p>Simply add this following code to your <strong>.htaccess</strong> file that located in your web root directory (adjust the URL with yours):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">redirect 301 /old/old-permalink/ http://www.yourdomain/new-permalink</pre></div></div>

<p>Be sure not to add &#8220;http://www.yourdomain&#8221; to the first part of the statement &#8211; just put the path from the top level of your site to the page. Also ensure that you leave a single space between these elements:</p>
<p><strong>redirect 301</strong> (the instruction that the page has moved)</p>
<p><strong>/old/old-permalink/</strong> (the original folder path and file name)</p>
<p><strong>http://www.yourdomain/new-permalink/</strong>  (new path and file name)</p>
<p>Hopefully this will be helpful for you.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F04%2Fauto-redirect-from-the-old-url-to-the-new-url-of-my-website%2F&amp;title=Auto%20Redirect%20From%20The%20Old%20URL%20to%20The%20New%20URL%20of%20My%20Website" id="wpa2a_6"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/04/auto-redirect-from-the-old-url-to-the-new-url-of-my-website/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Important Thing After Activated WP Super Cache Plugin in WordPress</title>
		<link>http://www.openscriptsolution.com/2009/10/01/important-thing-after-activated-wp-super-cache-plugin-in-wordpress/</link>
		<comments>http://www.openscriptsolution.com/2009/10/01/important-thing-after-activated-wp-super-cache-plugin-in-wordpress/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 09:44:54 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[important]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[WP Super Cache]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=473</guid>
		<description><![CDATA[After you activated the WP Super Cache plugin, then the most important thing that you have to set ON this plugin through the WP Super Cache Manager page. Then, add the following rules into your .htaccess file that located in your web root directory. Please note that you have to add this following code at [...]]]></description>
			<content:encoded><![CDATA[<p>After you activated the <a href="http://wordpress.org/extend/plugins/wp-super-cache/" target="_blank" title="WP Super Cache">WP Super Cache plugin</a>, then the most important thing that you have to set ON this plugin through the <strong>WP Super Cache Manager</strong> page. Then, add the following rules into your <strong>.htaccess</strong> file that located in your web root directory. Please note that you have to add this following code at the top of the .htaccess file. Make sure they appear before any existing WordPress rules. <span id="more-473"></span></p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
</pre></td><td class="code"><pre class="html" style="font-family:monospace;"># BEGIN WPSuperCache
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
&nbsp;
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{HTTP_user_agent} !^.*(Android|2.0\ MMP|240x320|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|hiptop|IEMobile|iPhone|iPod|KYOCERA/WX310K|LG/U990|MIDP-2.0|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|Playstation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|Windows\ CE|WinWAP).*
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
&lt;/IfModule&gt;
# END WPSuperCache</pre></td></tr></table></div>

<p>Afterwards, you also have to add the following code into the <strong>.htaccess</strong> file that located on your <strong>/wp-content/cache/</strong> sub directory:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
</pre></td><td class="code"><pre class="html" style="font-family:monospace;"># BEGIN supercache
&lt;IfModule mod_mime.c&gt;
  &lt;FilesMatch &quot;\.html\.gz$&quot;&gt;
    ForceType text/html
    FileETag None
  &lt;/FilesMatch&gt;
  AddEncoding gzip .gz
  AddType text/html .gz
&lt;/IfModule&gt;
&lt;IfModule mod_deflate.c&gt;
  SetEnvIfNoCase Request_URI \.gz$ no-gzip
&lt;/IfModule&gt;
&lt;IfModule mod_headers.c&gt;
  Header set Cache-Control 'max-age=300, must-revalidate'
&lt;/IfModule&gt;
&lt;IfModule mod_expires.c&gt;
  ExpiresActive On
  ExpiresByType text/html A300
&lt;/IfModule&gt;
# END supercache</pre></td></tr></table></div>

<p>This is important in order this plugin will work properly. This has been tested and worked fine on WP Super Cache version 0.9.6.1.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F10%2F01%2Fimportant-thing-after-activated-wp-super-cache-plugin-in-wordpress%2F&amp;title=Important%20Thing%20After%20Activated%20WP%20Super%20Cache%20Plugin%20in%20WordPress" id="wpa2a_8"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/10/01/important-thing-after-activated-wp-super-cache-plugin-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Change Register Globals Value for Your Website</title>
		<link>http://www.openscriptsolution.com/2009/09/23/how-to-change-register-globals-value-for-your-website/</link>
		<comments>http://www.openscriptsolution.com/2009/09/23/how-to-change-register-globals-value-for-your-website/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 08:14:03 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[register_global]]></category>
		<category><![CDATA[register_globals]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=403</guid>
		<description><![CDATA[There are some resources that recommend you to set register_globals become Off on your PHP installation in order to keep your website secure. Some of them are: - Using Register Globals - How do I deal with register_globals? We are not talking or discussing about those resources, but the question is: &#8220;How do I change [...]]]></description>
			<content:encoded><![CDATA[<p>There are some resources that recommend you to set <strong>register_globals</strong> become <strong>Off</strong> on your PHP installation in order to keep your website secure. Some of them are:<br />
- <a href="http://uk2.php.net/manual/en/security.globals.php" target="_blank"><strong>Using Register Globals</strong></a><br />
- <a href="http://uk2.php.net/manual/en/faq.misc.php#faq.misc.registerglobals" target="_blank"><strong>How do I deal with register_globals? </strong></a><br />
We are not talking or discussing about those resources, but the question is: &#8220;How do I change this register_globals value become <strong>Off</strong> anyhow if its directive on my server currently is <strong>On</strong>, and in the same time I could not change the register_globals directive from the php.ini file?&#8221; Well, here is the solution for you. <span id="more-403"></span></p>
<ol>
<li>
First of all, create an .htaccess file inside your web root directory (if it does not exist before), and then copy this code to the top section of the file:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;"># Force Register Globals Off !
php_flag register_globals off</pre></td></tr></table></div>

</li>
<li>
Make sure that your <strong>register_globals</strong> setting now is off, by using the following code. Create a new .php file (for example: <strong>checkregisterglobals.php</strong>) and put this file inside your web root directory.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
</pre></td><td class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
  <span style="color: #000088;">$checkregisterglobals</span> <span style="color: #339933;">=</span> <span style="color: #990000;">ini_get</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register_globals'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$checkregisterglobals</span> <span style="color: #339933;">==</span> <span style="color: #cc66cc;">1</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Your register_globals is ON&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Your register_globals is OFF&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></td></tr></table></div>

<p>and then call this file from your browser, for example: <strong>http://www.yourdomain.com/checkregisterglobals.php</strong>, and it should be return an output as: <strong>Your register_globals is OFF</strong>.
</li>
</ol>
<p>If you want to change the opposite of that value, then change the code in .htaccess file as follow:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
</pre></td><td class="code"><pre class="html" style="font-family:monospace;"># Force Register Globals On !
php_flag register_globals on</pre></td></tr></table></div>

<p>WARNING: <strong>It is strongly not recommended you change or set this <strong>register_globals</strong> directive become On. You are responsible for the consequence caused by this setting.</strong>.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F09%2F23%2Fhow-to-change-register-globals-value-for-your-website%2F&amp;title=How%20to%20Change%20Register%20Globals%20Value%20for%20Your%20Website" id="wpa2a_10"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/09/23/how-to-change-register-globals-value-for-your-website/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>The .htaccess File Content When Permalink Activated</title>
		<link>http://www.openscriptsolution.com/2009/08/25/the-htaccess-file-content-when-permalink-activated/</link>
		<comments>http://www.openscriptsolution.com/2009/08/25/the-htaccess-file-content-when-permalink-activated/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 03:26:53 +0000</pubDate>
		<dc:creator>Masino Sinaga</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[content]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[permalink]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.openscriptsolution.com/?p=72</guid>
		<description><![CDATA[I just wondered what would be happened when Permalink feature in WordPress is being activated? Detail technical question is: &#8220;What is the truly identifer that makes me sure this feature is being activated?&#8221; For those who do not know what Permalink is, it is a feature in WordPress that allows you to change the URL [...]]]></description>
			<content:encoded><![CDATA[<p>I just wondered what would be happened when <strong>Permalink</strong> feature in WordPress is being activated? Detail technical question is: &#8220;What is the truly identifer that makes me sure this feature is being activated?&#8221; For those who do not know what Permalink is, it is a feature in WordPress that allows you to change the URL style become SEO friendly. For example, default URL is: http://www.yourdomainname.com/index.php?p=123 then when Permalink activated, that URL will become http://www.yourdomainname.com/2009/08/21/sample-post/.  Well, here is the answer for this. <span id="more-72"></span></p>
<p>When you activate Permalink feature from admin panel in Settings section for the very first time, then your WordPress will create an .htaccess file located on your web root directory (assuming this file does not already exist before). This .htaccess file contains of the code as you can see below:</p>
<pre># BEGIN WordPress
&lt;IfModule mod_rewrite.c&gt;
RewriteEngine On
RewriteBase /yourdomainnamehere/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /yourdomainnamehere/index.php [L]
&lt;/IfModule&gt;

# END WordPress</pre>
<p>Please note that <strong>yourdomainhere</strong> is the name of your domain.</p>
<p>When you deactivate this Permalink feature, then this .htaccess file would not be removed, but the main code above would be removed. It becomes like this:</p>
<pre># BEGIN WordPress

# END WordPress</pre>
<p>This has been tested in WordPress version 2.8.4.</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.openscriptsolution.com%2F2009%2F08%2F25%2Fthe-htaccess-file-content-when-permalink-activated%2F&amp;title=The%20.htaccess%20File%20Content%20When%20Permalink%20Activated" id="wpa2a_12"><img src="http://www.openscriptsolution.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.openscriptsolution.com/2009/08/25/the-htaccess-file-content-when-permalink-activated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
