<?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>Bagesh Singh&#039;s Blog &#187; url rewriting</title>
	<atom:link href="http://www.bageshsingh.com/bagesh-blog/tag/url-rewriting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bageshsingh.com/bagesh-blog</link>
	<description>Shortest Distance to  Web Solutions &#38; Software Solutions</description>
	<lastBuildDate>Wed, 22 Feb 2012 18:42:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How to check and enable mod_rewrite module in apache</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/11/check-enable-mod_rewrite-apache/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/11/check-enable-mod_rewrite-apache/#comments</comments>
		<pubDate>Tue, 09 Nov 2010 17:14:22 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[Interview Question]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[tutorial]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[url rewriting]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=830</guid>
		<description><![CDATA[I’ve got around 15 emails asking from readers, how to check the mod_rewrite module in apache and enable mod_rewrite module in apache after reading two most of the popular post of this blog 5 useful url rewriting examples and hide .php extension with url rewriting. How to check weather mod_rewrite module is enabled or not? [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve got around 15 emails asking from readers, how to check the mod_rewrite module in apache and enable mod_rewrite module in apache after reading two most of the popular post of this blog 5 useful url rewriting examples and hide .php extension with url rewriting.</p>
<p><strong>How to check weather mod_rewrite module is enabled or not?<br />
</strong><br />
Well there are lots of technique to check this but I’ll show you a very simple technique to check weather mod_rewrite module is enabled or not in you web server.</p>
<p><strong>1) </strong>Type &lt;?php phpinfo(); ?&gt; in a php file and save it and run that file in the server.<br />
<strong> 2) </strong>And now you can the list of information, just search the word “mod_rewrite” from the browser’s search menu<br />
<strong> 3)</strong> If it is found under the “Loaded Modules” section then this module is already loaded as you see in the picture below, otherwise you need to go to the next step for enabling mod_rewrite module.</p>
<pre><a title="mod_rewrite.gif" href="http://roshanbh.com.np/wp-content/uploads/2008/04/mod_rewrite.gif"><img src="http://roshanbh.com.np/wp-content/uploads/2008/04/mod_rewrite.thumbnail.gif" border="0" alt="check mod rewrite module" width="128" height="79" /></a></pre>
<p><strong>How to enable mod_rewrite module in apache in xampp, wamp?</strong></p>
<p>Now, I’ll show you how to enable how to mod_rewrite module in apache installed under windows environment.<br />
<strong> 1) </strong>Find the “httpd.conf” file under the “conf” folder inside the Apache’s installation folder.<br />
<strong> 2)</strong> Find the following line “#LoadModule rewrite_module modules/mod_rewrite.so” in the “httpd.conf” file.You can do this easily by searching the keyword “mod_rewrite” from find menu.<br />
<strong> 3) </strong>Remove the “#” at the starting of the line, “#”  represents that line is commented.<br />
<strong> 4) </strong>Now  restart the apache server.<br />
<strong> 5) </strong>You can see now “mod_rewrite” in the Loaded Module section while doing “phpinfo()”.</p>
<div id="seo_alrp_related"><h2>Posts Related to How to check and enable mod_rewrite module in apache</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/how-to-check-and-enable-mod_rewrite-module-in-apache/" rel="bookmark">How to check and enable mod_rewrite module in apache</a></h3><p>Well, I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/05/what-are-positions-in-joomla/" rel="bookmark">What are positions in joomla?</a></h3><p>Site templates divides the "pages" displayed on a site into a series of positions, each with a different name. You can view the location of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/08/ow-to-install-and-configure-php-5-on-windows-box/" rel="bookmark">How to install and configure PHP 5 on Windows box</a></h3><p>It is assumed that you have already successfully setup IIS or installed Apache on your machine and configured it. So, to configure PHP and secure ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/" rel="bookmark">Creating Block From the Code in Magento</a></h3><p>Here are some methods of creating block by code in Magento. This type of code can be used directly in template, not need to create ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/php-installation-how-to-install-php/" rel="bookmark">PHP Installation : How to install php</a></h3><p>PHP Installation Requirement: PHP 5.1.2 Apache 2.0.55 Java Bridge 3.0.7a Default setting: D:/payment Steps: 1. Install apache in d:/payment/ It automatically create folder named apache2 ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/11/check-enable-mod_rewrite-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>301 non-www to www or Permanent Redirect any single file URL to give some other one</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/05/301-non-www-to-www-or-permanent-redirect-any-single-file-url-to-give-some-other-one/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/05/301-non-www-to-www-or-permanent-redirect-any-single-file-url-to-give-some-other-one/#comments</comments>
		<pubDate>Fri, 21 May 2010 13:17:54 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[htaccess]]></category>
		<category><![CDATA[Others]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[tips and technique]]></category>
		<category><![CDATA[Permanent Redirect]]></category>
		<category><![CDATA[url rewriting]]></category>
		<category><![CDATA[www to www]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=564</guid>
		<description><![CDATA[Permanent Redirect your URL from non-www to www by using following code RewriteEngine On RewriteCond %{HTTP_HOST} ^websitedesigning-company.com [NC] RewriteRule ^(.*)$ http://websitedesigning-company.com/$1 [L,R=301] or Permanent Redirect any single file URL to give some other one RewriteCond %{HTTP_HOST} ^websitedesigning-company.com$ [OR] RewriteCond %{HTTP_HOST} ^www.websitedesigning-company.com$ RewriteRule ^mtp\/career_profile\.php$ &#8220;http\:\/\/websitedesigning\-company\.com\/mtp\/career\-advice\-online&#8221; [R=301,L] OR RewriteRule oldfile name$ new file name with full path [...]]]></description>
			<content:encoded><![CDATA[<p>Permanent Redirect your URL from non-www to www by using following code</p>
<p>RewriteEngine On<br />
RewriteCond %{HTTP_HOST} ^websitedesigning-company.com [NC]<br />
RewriteRule ^(.*)$ http://websitedesigning-company.com/$1 [L,R=301]</p>
<p>or</p>
<p>Permanent Redirect any single file URL to give some other one</p>
<p>RewriteCond %{HTTP_HOST} ^websitedesigning-company.com$ [OR]<br />
RewriteCond %{HTTP_HOST} ^www.websitedesigning-company.com$<br />
RewriteRule ^mtp\/career_profile\.php$  &#8220;http\:\/\/websitedesigning\-company\.com\/mtp\/career\-advice\-online&#8221;  [R=301,L]</p>
<p>OR<br />
RewriteRule oldfile name$ new file name with full path<br />
RewriteRule ^career-advice/interview-coaching$  http://www.mytalentplace.co.uk/interview-skills/interview-coaching  [R=301,L]</p>
<p>for every . and /<br />
we have to use \. or \/</p>
<div id="seo_alrp_related"><h2>Posts Related to 301 non-www to www or Permanent Redirect any single file URL to give some other one </h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/301-redirect-in-php-and-htaccess/" rel="bookmark">301 redirect in PHP and .htaccess</a></h3><p>What is 301 redirect ? You have a website and its all pages are ranked in the search engine. And now you</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/08/how-to-call-exit-after-redirecting-in-cakephp/" rel="bookmark">how to Call exit() after redirecting in cakePHP</a></h3><p>This should be no surprise to anyone who has done any serious web development in the past, but make sure you call exit() after running ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/08/cakephp-debug-mode-0-problem-in-ie-%e2%80%93-page-redirect-problem-issue/" rel="bookmark">cakePHP Debug Mode 0 Problem in IE – Page Redirect Problem / Issue</a></h3><p>Don’t make debug mode to 0 (zero) because there is a bug in this mode which you run you application in IE 8. Your page ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/08/fileexistsinpath-cakephp-function-to-check-if-fileimage-exists-in-valid-path/" rel="bookmark">FileExistsInPath CakePHP Function to Check if File/Image Exists in Valid Path</a></h3><p>function deletephotograph($id){ //Get File/Image name $data = $this-&gt;Propphotograph-&gt;find('first', array('conditions' =&gt; array('Propphotograph.id' =&gt; $id), 'fields' =&gt; array('Propphotograph.photograph'))); $image_name = $data['Propphotograph']['photograph']; // Use fileExistsInPath() function to check ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/03/how-to-do-file-uploading-using-php-curl/" rel="bookmark">how to do File Uploading Using PHP Curl</a></h3><p>File uploading through PHP Curl is very simple. You just have to append @ in front of path of file name &amp; send it to ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/05/301-non-www-to-www-or-permanent-redirect-any-single-file-url-to-give-some-other-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>5 useful url rewriting examples using .htaccess</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/02/5-useful-url-rewriting-examples-using-htaccess/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/02/5-useful-url-rewriting-examples-using-htaccess/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:22:26 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[examples]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[url rewriting]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=17</guid>
		<description><![CDATA[If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I Posts Related to 5 useful url rewriting examples using .htaccessHide .php extension with url rewriting using .htaccessLast time IHow to check and enable mod_rewrite module in apacheI’ve got around 15 emails asking from [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for the examples of URL rewriting then this post might be useful for you. In this post, I</p>
<div id="seo_alrp_related"><h2>Posts Related to 5 useful url rewriting examples using .htaccess</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/hide-php-extension-with-url-rewriting-using-htaccess/" rel="bookmark">Hide .php extension with url rewriting using .htaccess</a></h3><p>Last time I</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/check-enable-mod_rewrite-apache/" rel="bookmark">How to check and enable mod_rewrite module in apache</a></h3><p>I’ve got around 15 emails asking from readers, how to check the mod_rewrite module in apache and enable mod_rewrite module in apache after reading two ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/custom-error-page-with-htaccess/" rel="bookmark">Custom Error Page with .htaccess</a></h3><p>In my last post of Hiding .php file extension with .htaccess Michael has mentioned that you can create your own custom page for the the ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/uploading-largebig-files-in-php-using-htaccess-2/" rel="bookmark">Uploading large(big) files in PHP using .htaccess</a></h3><p>I’ve seen that many of my friends are struggling with the uploads of the bigger or larger files in PHP. After looking at their struggle, ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2011/08/how-to-connect-to-ms-sql-server-database/" rel="bookmark">How to connect to MS SQL Server database</a></h3><p>Below is the code for connecting to a MSSQL Server database. &lt;?php $myServer = "localhost"; $myUser = "your_name"; $myPass = "your_password"; $myDB = "examples"; //connection ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/02/5-useful-url-rewriting-examples-using-htaccess/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to check and enable mod_rewrite module in apache</title>
		<link>http://www.bageshsingh.com/bagesh-blog/2010/02/how-to-check-and-enable-mod_rewrite-module-in-apache/</link>
		<comments>http://www.bageshsingh.com/bagesh-blog/2010/02/how-to-check-and-enable-mod_rewrite-module-in-apache/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 14:21:15 +0000</pubDate>
		<dc:creator>Bagesh Singh</dc:creator>
				<category><![CDATA[htaccess]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>
		<category><![CDATA[url rewriting]]></category>

		<guid isPermaLink="false">http://www.bageshsingh.com/bagesh-blog/?p=15</guid>
		<description><![CDATA[Well, I Posts Related to How to check and enable mod_rewrite module in apacheHow to check and enable mod_rewrite module in apacheI’ve got around 15 emails asking from readers, how to check the mod_rewrite module in apache and enable mod_rewrite module in apache after reading two ...What are positions in joomla?Site templates divides the "pages" [...]]]></description>
			<content:encoded><![CDATA[<p>Well, I</p>
<div id="seo_alrp_related"><h2>Posts Related to How to check and enable mod_rewrite module in apache</h2><ul><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/11/check-enable-mod_rewrite-apache/" rel="bookmark">How to check and enable mod_rewrite module in apache</a></h3><p>I’ve got around 15 emails asking from readers, how to check the mod_rewrite module in apache and enable mod_rewrite module in apache after reading two ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/05/what-are-positions-in-joomla/" rel="bookmark">What are positions in joomla?</a></h3><p>Site templates divides the "pages" displayed on a site into a series of positions, each with a different name. You can view the location of ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/02/php-framework-list/" rel="bookmark">PHP Framework List</a></h3><p>PHP Framework PHP4 PHP5 MVC Multiple DB's ORM DB Objects Templates Caching Validation Ajax Auth Module Modules EDP Akelos - ash.MVC - - - - ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/04/creating-block-from-the-code-in-magento/" rel="bookmark">Creating Block From the Code in Magento</a></h3><p>Here are some methods of creating block by code in Magento. This type of code can be used directly in template, not need to create ...</p></div></li><li><div class="seo_alrp_rl_content"><h3><a href="http://www.bageshsingh.com/bagesh-blog/2010/03/php-installation-how-to-install-php/" rel="bookmark">PHP Installation : How to install php</a></h3><p>PHP Installation Requirement: PHP 5.1.2 Apache 2.0.55 Java Bridge 3.0.7a Default setting: D:/payment Steps: 1. Install apache in d:/payment/ It automatically create folder named apache2 ...</p></div></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.bageshsingh.com/bagesh-blog/2010/02/how-to-check-and-enable-mod_rewrite-module-in-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

