<?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>DS-Hosting Solutions :: Web Hosting &#124; Reseller Hosting &#124; Domain Services &#124; SSL Certificates &#187; htaccess</title>
	<atom:link href="http://www.ds-hostingsolutions.net/kb/tag/htaccess/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ds-hostingsolutions.net/kb</link>
	<description>Read all about Reliable Web Hosting, Domain Registration and SSL Certificate services. Our All-Inclusive cPanel/WHM Packages offer a value packed hosting solution with great features.</description>
	<lastBuildDate>Mon, 24 Oct 2011 20:11:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<title>DS-Hosting Solutions :: Web Hosting | Reseller Hosting | Domain Services | SSL Certificates</title>
<url>http://www.ds-hostingsolutions.net/images/ds-hostingsolutions.gif</url>
<link>http://www.ds-hostingsolutions.net/kb</link>
<width></width>
<height></height>
<description>get_bloginfo('description')</description>
</image>		<item>
		<title>Do your web hosting packages support the SourceGuardian PHP Encoder?</title>
		<link>http://www.ds-hostingsolutions.net/kb/sourceguardian-php-encoder/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/sourceguardian-php-encoder/#comments</comments>
		<pubDate>Fri, 22 May 2009 07:39:42 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[Linux Web Hosting]]></category>
		<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[Web Hosting Services]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=259</guid>
		<description><![CDATA[&#160;By default, SourceGuardian is not installed on any of our web hosting packages. However, that does not mean that you are not able to host any scripts that are encoded with SourceGuardian!
SourceGuardian does tell you to upload there encoders to the scripts folder and it will load the files as long the php function dl() [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>By default, <strong>SourceGuardian</strong> is not installed on any of our web hosting packages. However, that does not mean that you are not able to host any scripts that are encoded with SourceGuardian!</p>
<p>SourceGuardian does tell you to upload there encoders to the scripts folder and it will load the files as long the php function <strong>dl()</strong> is enabled as part of the installation. And unfortunately we have to dissapoint you once again, dl() is disabled for security reasons on all web hosting packages.</p>
<p>&nbsp;</p>
<p>Below we will explain you how to get the scripts to run properly, this is possible since we run <strong>suPHP</strong>.</p>
<p>&nbsp;</p>
<p>First you need to create a new .htaccess file in your public_html folder if you haven&#8217;t done already. Otherwise you need to edit your current .htaccess file.</p>
<p>In your <strong>.htaccess</strong> file under your public_html folder, add   the following:</p>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><code>suPHP_ConfigPath&nbsp;/home/<span style="color: #0000ff;">user</span>/public_html<br />
   &lt;Files&nbsp;php.ini&gt;<br />
   order   allow,deny<br />
   deny from all<br />
   &lt;/Files&gt;</code></p>
 <p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to change the <span style="color: #0000ff;">user</span> text above to your account user name.</p>
 <p>&nbsp;</p>
 <p>Then create a <strong>php.ini</strong> file under your public_html folder and add the following (or edit the current file if you have a php.ini file):</p>
<p>&nbsp;</p>
<p style="padding-left: 30px;"><code>extension_dir=/home/<span style="color: #0000ff;">user</span>/public_html/<span style="background-color: #ffff00;">extensions</span></code></p>
<p style="padding-left: 30px;">&nbsp;</p>
<p style="padding-left: 30px;"><code>[Zend]<br />
   zend_extension=/usr/local/ioncube/ioncube_loader_lin_5.2.so<br />
   zend_optimizer.optimization_level=15<br />
   zend_extension_manager.optimizer=/usr/local/Zend/lib/Optimizer-3.3.3<br />
   zend_extension_manager.optimizer_ts=/usr/local/Zend/lib/Optimizer_TS-3.3.3<br />
   zend_extension=/usr/local/Zend/lib/ZendExtensionManager.so<br />
   zend_extension_ts=/usr/local/Zend/lib/ZendExtensionManager_TS.so<br />
   extension=/home/user/public_html/<span style="background-color: #ffff00;">extensions</span>/ixed.5.2.lin</code></p>
<p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to change the <span style="color: #0000ff;">user</span> text above to your account user name.</p>
<p>Zend Optimizer and IonCube loaders are added as well so you won&#8217;t drop the support for them with your new php.ini file.</p>
<p>&nbsp;</p>
<p>Now create a new folder called &quot;<span style="background-color: #ffff00;">extensions</span>&quot; in your public_html folder and download the required loader at <a href="http://www.sourceguardian.com/ixeds/ixed4.lin.x86-64.zip">http://www.sourceguardian.com/ixeds/ixed4.lin.x86-64.zip</a></p>
<p>Then extract the zip file and upload the file &quot;<strong>ixed.5.2.lin</strong>&quot; to your created folder &quot;<span style="background-color: #ffff00;">extensions</span>&quot;</p>
<p>You may choose another folder to upload the SourceGuardian loader to but remember to have the <span style="background-color: #ffff00;">folder name</span> reflect the one you typed within your php.ini file.</p>
<p>&nbsp;</p>
<p>Full details about SourceGuardian can be found at there website, located here:</p>
<p><a href="http://www.sourceguardian.com/">http://www.sourceguardian.com</a></p>
<p>&nbsp;</p>
<p>Congratulations, you have just installed SourceGuardian in your web hosting account and your script should now run properly!</p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/sourceguardian-php-encoder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to increase PHP limits</title>
		<link>http://www.ds-hostingsolutions.net/kb/increase-php-limits/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/increase-php-limits/#comments</comments>
		<pubDate>Mon, 18 May 2009 09:20:21 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=219</guid>
		<description><![CDATA[&#160;In your .htaccess file under your public_html folder, add the following:
suPHP_ConfigPath&#160;/home/user/public_html
    &#60;Files&#160;php.ini&#62;
    order allow,deny
    deny from all
    &#60;/Files&#62;
&#160;
Note: Make sure to change the user text above to your account username.
&#160;
Then create a php.ini file under your public_html folder and add any of the [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>In your <strong>.htaccess</strong> file under your public_html folder, add the following:</p>
<p style="padding-left: 30px;"><code>suPHP_ConfigPath&nbsp;/home/<span style="color: #0000ff;">user</span>/public_html<br />
    &lt;Files&nbsp;php.ini&gt;<br />
    order allow,deny<br />
    deny from all<br />
    &lt;/Files&gt;</code></p>
<p>&nbsp;</p>
<p><strong><span style="color: #ff0000;">Note:</span></strong> Make sure to change the <span style="color: #0000ff;">user</span> text above to your account username.</p>
<p>&nbsp;</p>
<p>Then create a <strong>php.ini</strong> file under your public_html folder and add any of the following that are needed:</p>
<p style="padding-left: 30px;"><code>upload_max_filesize = 12M <br />
    post_max_size = 16M<br />
    memory_limit = 32M<br />
    max_execution_time = 60 <br />
    upload_tmp_dir = /tmp</code></p>
<p>&nbsp;</p>
<p>Information below will not work at DS-Hosting Solutions, use the above method instead because we are running <strong>suPHP</strong>.</p>
<p>&nbsp;</p>
<p>For servers running normal PHP you can increase the PHP max upload size for your account by adding the following to your .htaccess file:</p>
<p style="padding-left: 30px;"><code>php_value upload_max_filesize &quot;12M&quot;<br />
    php_value post_max_size &quot;16M&quot;<br />
	php_value&nbsp;max_input_time &quot;60&quot;</code></p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/increase-php-limits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTTP Error 500 &#8211; Internal server error</title>
		<link>http://www.ds-hostingsolutions.net/kb/500-internal-server-error/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/500-internal-server-error/#comments</comments>
		<pubDate>Mon, 18 May 2009 07:56:47 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[PHP Hosting]]></category>
		<category><![CDATA[Server Security]]></category>
		<category><![CDATA[Website Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[suPHP]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=207</guid>
		<description><![CDATA[&#160;If you are receiving the error 500 it will be due to one of the following issues:

	.htaccess

Check your .htaccess file for php_ commands. If you have any, add a # in front of the line or delete them. Then test your webpage. If you still have the error try removing everything from your .htaccess file. [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>If you are receiving the error 500 it will be due to one of the following issues:</p>
<ul>
	<li><strong>.htaccess</strong></li>
</ul>
<p>Check your .htaccess file for php_ commands. If you have any, add a # in front of the line or delete them. Then test your webpage. If you still have the error try removing everything from your .htaccess file. If that resolves the issue add the .htaccess lines back one at time until you find the bad line.</p>
<p>If these steps do not resolve your issue try the next steps.</p>
<ul>
	<li><strong>File and folder permissions</strong></li>
</ul>
<p>Check your files and folders to make sure you don&#8217;t have any files with the permission 666 or folders with the permission 777.</p>
<p>&nbsp;</p>
<p>Those permissions are not needed on our servers. We run suPHP which allows you to make files writable without creating the major security hole that occurs when using the permissions 666 and 777.</p>
<p>&nbsp;</p>
<p>The correct permissions should be:</p>
<p><strong>Folders:</strong> 755</p>
<p><strong>Files:</strong> 644</p>
<p><strong>Files that need to be unwritable:</strong> 444</p>
<ul>
	<li><strong>MIME-Types</strong></li>
</ul>
<p>If you added a MiME-Type to the system in order to run html files as php scripts, you will have to remove it and add an ApacheHandler instead.</p>
<p>&nbsp;</p>
<p>Log into cPanel, then click on <strong>Apache Handlers</strong> and add the following:</p>
<p><strong>Handler:</strong> application/x-httpd-php</p>
<p><strong>Extension(s):</strong> .html</p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/500-internal-server-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to login webmail directly without acessing cPanel?</title>
		<link>http://www.ds-hostingsolutions.net/kb/login-webmail-directly-without-cpanel/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/login-webmail-directly-without-cpanel/#comments</comments>
		<pubDate>Mon, 18 May 2009 03:39:07 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[cPanel/WHM]]></category>
		<category><![CDATA[eMail Questions]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=157</guid>
		<description><![CDATA[&#160;How to login directly using &#8220;webmail.domain.com&#8221; in to Squirrelmail, Horde or RoundCube of any account?
&#160;
First you need to create a subdomain that you want to redirect to your preferred Webmail client [Squirrelmail / Horde / RoundCube].
&#160;
Following are the steps to create subdomain.

	Login in to your cPanel interface.
	Select the Subdomain option, and create the subdomain. (For [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>How to login directly using &#8220;<strong>webmail.domain.com</strong>&#8221; in to <strong>Squirrelmail</strong>, <strong>Horde</strong> or <strong>RoundCube</strong> of any account?</p>
<p>&nbsp;</p>
<p>First you need to create a <strong>subdomain</strong> that you want to redirect to your preferred Webmail client [<strong>Squirrelmail</strong> / <strong>Horde </strong>/<strong> RoundCube</strong>].</p>
<p>&nbsp;</p>
<p><strong>Following are the steps to create subdomain.</strong></p>
<ol>
	<li>Login in to your <strong>cPanel</strong> interface.</li>
	<li>Select the Subdomain option, and create the subdomain. (For eg: <strong>webmail.domain.com</strong>)</li>
	<li>Once it has been created, go to the <strong>File Manager</strong> option of the cPanel.</li>
	<li>Change path to &#8220;<strong>public_html</strong>&#8221; by selecting the folder image beside the text &#8220;public_html&#8221;</li>
	<li>Now change the path to folder that was create by your <strong>subdomain</strong>. (as per our example it would be the &#8220;<strong>webmail</strong>&#8221; folder.</li>
	<li>Once inside this directory [<strong>webmail</strong>], you will see &#8220;<strong>.htaccess</strong>&#8221; file, if it&#8217;s not there then you need to create it manually.
<ul>
	<li>If it is not there then create new using below steps: (if it already exists proceed to step <strong>10</strong>)</li>
</ul>
</li>
	<li>Create it [.htaccess] by selecting the &#8220;<strong>Create New File</strong>&#8221; option.</li>
	<li>A menu appears in the top right corner of the <strong>File Manager interface</strong>. Choose &#8220;<strong>Text Document</strong>&#8221; and name it &#8220;<strong>.htaccess</strong>&#8221; <strong>[</strong>without quotes<strong>]</strong></li>
	<li>Now refresh File Manager and you will then see your new file [.htaccess] in the listing of that directory.</li>
	<li>Click on the text title for the <strong>.htaccess</strong> file on the left side of the screen and a menu appears in the top right of the screen.</li>
	<li>Choose the &#8220;<strong>Edit File</strong>&#8221; option, a new window opens.</li>
	<li>Add the following lines:</li>
</ol>
<p><strong>- If You Want To <span style="background-color: #ffff00;">Redirect</span> &#8220;webmail.domain.com&#8221; to the <span style="background-color: #ffff00;">Squirrel Mail</span> Client: -</strong></p>
<p>&nbsp;</p>
<blockquote>
<p style="margin-left: 40px;">RewriteEngine on</p>
<p style="margin-left: 40px;">RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]</p>
<p style="margin-left: 40px;">RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$</p>
<p style="margin-left: 40px;">RewriteRule ^(.*)$ http://domain.com:2095/3rdparty/squirrelmail/index.php$1 [R=301,L]</p>
</blockquote>
 
<p><strong>- If You Want To <span style="background-color: #ffff00;">Redirect</span> &#8220;webmail.domain.com&#8221; to the <span style="background-color: #ffff00;">Horde</span> Webmail Client: -</strong></p>
<p>&nbsp;</p>
<blockquote>
<p style="margin-left: 40px;">RewriteEngine on</p>
<p style="margin-left: 40px;">RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]</p>
<p style="margin-left: 40px;">RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$</p>
<p style="margin-left: 40px;">RewriteRule ^(.*)$ http://domain.com:2095/horde/$1 [R=301,L]</p>
</blockquote>
  
<p><strong>- If You Want To <span style="background-color: #ffff00;">Redirect</span> &#8220;webmail.domain.com&#8221; to the <span style="background-color: #ffff00;">RoundCube</span> Webmail Client: -</strong></p>
<p>&nbsp;</p>
<blockquote>
<p style="margin-left: 40px;">RewriteEngine on</p>
<p style="margin-left: 40px;">RewriteCond %{HTTP_HOST} ^webmail.domain.com$ [OR]</p>
<p style="margin-left: 40px;">RewriteCond %{HTTP_HOST} ^www.webmail.domain.com$</p>
<p style="margin-left: 40px;">RewriteRule ^(.*)$ http://domain.com:2095/3rdparty/roundcube/$1 [R=301,L]</p>
</blockquote>
<p>&nbsp;</p>
<p><strong><span style="color: red;">NOTE:</span></strong> replace <strong>&#8220;domain.com&#8221;</strong> above with your actual domain name.</p>
<p>&nbsp;</p>
<p>Enjoy Direct Webmail Client Login. <img src='http://www.ds-hostingsolutions.net/kb/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/login-webmail-directly-without-cpanel/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>.htaccess &#8211; Change your default directory page.</title>
		<link>http://www.ds-hostingsolutions.net/kb/htaccess-change-default-page/</link>
		<comments>http://www.ds-hostingsolutions.net/kb/htaccess-change-default-page/#comments</comments>
		<pubDate>Fri, 15 May 2009 18:54:51 +0000</pubDate>
		<dc:creator>Support Staff</dc:creator>
				<category><![CDATA[Website Development]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.ds-hostingsolutions.net/kb/?p=62</guid>
		<description><![CDATA[&#160;Some of you may be wondering, just what in the world is a DirectoryIndex? Well, this is a command which allows you to specify a file that is to be loaded as your default page whenever a directory or url request comes in, that does not specify a specific page. Tired of having yoursite.com/index.html come [...]]]></description>
			<content:encoded><![CDATA[<div id="in_post_ad_top_1" style="margin: 5px;padding: 0px;"><p>&nbsp;</p></div><p>Some of you may be wondering, just what in the world is a DirectoryIndex? Well, this is a command which allows you to specify a file that is to be loaded as your default page whenever a directory or url request comes in, that does not specify a specific page. Tired of having yoursite.com/index.html come up when you go to yoursite.com? Want to change it to be yoursite.com/ILikePizzaSteve.html that comes up instead? No problem!</p>
<p>&nbsp;</p>
<blockquote>
<p style="margin-left: 40px"><span style="background-color: rgb(255,255,0)">DirectoryIndex filename.html</span></p>
</blockquote>
<p>&nbsp;</p>
<p>This would cause filename.html to be treated as your default page, or default directory page. You can also append other filenames to it. You may want to have certain directories use a script as a default page. That&#8217;s no problem too!</p>
<p>&nbsp;</p>
<blockquote>
<p style="margin-left: 40px"><span style="background-color: rgb(255,255,0)">DirectoryIndex filename.html index.cgi index.pl default.htm</span></p>
</blockquote>
<p>&nbsp;</p>
<p>Placing the above command in your htaccess file will cause this to happen: When a user types in yoursite.com, your site will look for filename.html in your root directory (or any directory if you specify this in the global htaccess), and if it finds it, it will load that page as the default page. If it does not find filename.html, it will then look for index.cgi; if it finds that one, it will load it, if not, it will look for index.pl and the whole process repeats until it finds a file it can use. Basically, the list of files is read from left to right.</p>
<p>&nbsp;</p>
<p>One thing you have to keep in mind, sub-folders will adopt the .htaccess settings specified within there main folder.</p><div style='clear:both'></div><p><div id="proactivechatcontainern46jx0g5yk"></div><div id="swifttagcontainern46jx0g5yk" style="display: none;"><div id="swifttagdatacontainern46jx0g5yk"></div></div> <script type="text/javascript">var swiftscriptelemn46jx0g5yk=document.createElement("script");swiftscriptelemn46jx0g5yk.type="text/javascript";var swiftrandom = Math.floor(Math.random()*1001); var swiftuniqueid = "n46jx0g5yk"; var swifttagurln46jx0g5yk="https://www.ds-hostingsolutions.net/helpcenter/visitor/index.php?/LiveChat/HTML/Monitoring/cHJvbXB0dHlwZT1jaGF0JnVuaXF1ZWlkPW40Nmp4MGc1eWsmdmVyc2lvbj00LjAxLjEwNiZwcm9kdWN0PUZ1c2lvbiZjdXN0b21vbmxpbmU9JmN1c3RvbW9mZmxpbmU9JmN1c3RvbWF3YXk9JmN1c3RvbWJhY2tzaG9ydGx5PQo4OGNlNjFlZDdmZDkyNTEzMDIxZDhlZTExYWMxNWVjMTc4ZWQ1MTMy";setTimeout("swiftscriptelemn46jx0g5yk.src=swifttagurln46jx0g5yk;document.getElementById('swifttagcontainern46jx0g5yk').appendChild(swiftscriptelemn46jx0g5yk);",1);</script></p>]]></content:encoded>
			<wfw:commentRss>http://www.ds-hostingsolutions.net/kb/htaccess-change-default-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

