<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: .htaccess, mod_rewrite on GoDaddy</title>
	<atom:link href="http://gidden.net/tom/2006/05/26/4/feed/" rel="self" type="application/rss+xml" />
	<link>http://gidden.net/tom/2006/05/26/4/</link>
	<description></description>
	<pubDate>Tue, 06 Jan 2009 01:14:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Jeff Thomas</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-18725</link>
		<dc:creator>Jeff Thomas</dc:creator>
		<pubDate>Wed, 24 Sep 2008 13:36:04 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-18725</guid>
		<description>We're having a devil of a time launching our site on GoDaddy hosting.  We've been running on an off shore hosting environment for a while and now have made the decision to move to GoDaddy to consolidate with my domain registrations, etc.  Our .htaccess file worked perfectly in the old hosting setup but was running under PHP ver 4.  

We've updated the .htaccess to instruct the support for ver 5 and still no joy.  Our current version of .htaccess includes the following:

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*


order deny,allow
deny from all
allow from all


order deny,allow
deny from all


AuthName www.wine-hotels.com
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4

AddHandler server-parsed .php .html 

# Enable rewrite engine

RewriteEngine On






Anybody have any ideas how to get this to work in GoDaddy?

Thanks in advance.</description>
		<content:encoded><![CDATA[<p>We're having a devil of a time launching our site on GoDaddy hosting.  We've been running on an off shore hosting environment for a while and now have made the decision to move to GoDaddy to consolidate with my domain registrations, etc.  Our .htaccess file worked perfectly in the old hosting setup but was running under PHP ver 4.  </p>
<p>We've updated the .htaccess to instruct the support for ver 5 and still no joy.  Our current version of .htaccess includes the following:</p>
<p>IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*</p>
<p>order deny,allow<br />
deny from all<br />
allow from all</p>
<p>order deny,allow<br />
deny from all</p>
<p>AuthName <a href="http://www.wine-hotels.com" rel="nofollow">http://www.wine-hotels.com</a><br />
AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4</p>
<p>AddHandler server-parsed .php .html </p>
<p># Enable rewrite engine</p>
<p>RewriteEngine On</p>
<p>Anybody have any ideas how to get this to work in GoDaddy?</p>
<p>Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krishna</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-18216</link>
		<dc:creator>Krishna</dc:creator>
		<pubDate>Wed, 03 Sep 2008 18:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-18216</guid>
		<description>I have a multi-site hosted on godaddy with the root directory hosting one site and /hindupedia hosting another site (which is reached by the url: www.hindupedia.com).  After trying alot of things on the web, I finally found a way to make this work.

here is my .htaccess file's contents

AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4
Options -MultiViews

RewriteEngine On
RewriteBase /
RewriteRule ^hindupedia/eng/(.*)$ en/index.php?title=$1 [PT,L,QSA]</description>
		<content:encoded><![CDATA[<p>I have a multi-site hosted on godaddy with the root directory hosting one site and /hindupedia hosting another site (which is reached by the url: <a href="http://www.hindupedia.com" rel="nofollow">http://www.hindupedia.com</a>).  After trying alot of things on the web, I finally found a way to make this work.</p>
<p>here is my .htaccess file's contents</p>
<p>AddHandler x-httpd-php5 .php<br />
AddHandler x-httpd-php .php4<br />
Options -MultiViews</p>
<p>RewriteEngine On<br />
RewriteBase /<br />
RewriteRule ^hindupedia/eng/(.*)$ en/index.php?title=$1 [PT,L,QSA]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Lorensson</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-17573</link>
		<dc:creator>Chris Lorensson</dc:creator>
		<pubDate>Wed, 13 Aug 2008 17:05:23 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-17573</guid>
		<description>thank you so much! Rock on!</description>
		<content:encoded><![CDATA[<p>thank you so much! Rock on!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Spell</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-16899</link>
		<dc:creator>Spell</dc:creator>
		<pubDate>Sat, 12 Jul 2008 15:24:12 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-16899</guid>
		<description>I have been trying to get SEF working on a shared Go Daddy website for 3 days with no luck until a few minutes ago. I have read and read and read... Okay, here's what seemed to work. Here's the a quick background: First, I did input the line, "Options -MultiViews" into .htaccess as mentioned above. Secondly, I uncommented the line "RewriteBase /" which several people say to do. Thirdly, since my Joomla 1.5.2 websites (using PHP 5.2.5) are each in a subdomain of my root folder (my root is for a regular HTML website) I added in a duplicate copy of .htaccess into the root folder. Okay, so: having done those three things still nothing worked. 

Then, a few minutes ago, I tried it again, but this time I made one change and voila, the whole thing WORKED. Here's what I did: 

Each time I've made a modification to the ".htaccess" file I did it in a certain way that seems to have been the problem. To elaborate: I copied it over to my hard drive using Filezilla, then changed the name to "htaccess.txt". Then, in Dreamweaver, I've gone into the file and made whatever change. Then, back in Filezilla, I uploaded the new "htaccess.txt" file onto the website, THEN lastly, I changed the name back to ".htaccess". That seems to have been the problem. This never worked. 

A few minutes ago, by a fluke, I instead changed the name BEFORE I uploaded the file onto the website. And that worked. Everything worked immediately. On two different websites. 

I'm basically a newbie, so any old-timers are probably reading this and groaning... I hope not. But just in case, this is what seemed to work, finally, for me. 

Take away: Try this: to change the name of "htaccess.txt", upload the file using Filezilla onto your hard drive, then change the name of the file while it's on your hard drive (you can do this while still in Filezilla). Then upload the newly renamed file ".htaccess" back onto the server. Go into your Global Config and turn on SEF and mod_rewrite and see if it works. Good luck!</description>
		<content:encoded><![CDATA[<p>I have been trying to get SEF working on a shared Go Daddy website for 3 days with no luck until a few minutes ago. I have read and read and read... Okay, here's what seemed to work. Here's the a quick background: First, I did input the line, "Options -MultiViews" into .htaccess as mentioned above. Secondly, I uncommented the line "RewriteBase /" which several people say to do. Thirdly, since my Joomla 1.5.2 websites (using PHP 5.2.5) are each in a subdomain of my root folder (my root is for a regular HTML website) I added in a duplicate copy of .htaccess into the root folder. Okay, so: having done those three things still nothing worked. </p>
<p>Then, a few minutes ago, I tried it again, but this time I made one change and voila, the whole thing WORKED. Here's what I did: </p>
<p>Each time I've made a modification to the ".htaccess" file I did it in a certain way that seems to have been the problem. To elaborate: I copied it over to my hard drive using Filezilla, then changed the name to "htaccess.txt". Then, in Dreamweaver, I've gone into the file and made whatever change. Then, back in Filezilla, I uploaded the new "htaccess.txt" file onto the website, THEN lastly, I changed the name back to ".htaccess". That seems to have been the problem. This never worked. </p>
<p>A few minutes ago, by a fluke, I instead changed the name BEFORE I uploaded the file onto the website. And that worked. Everything worked immediately. On two different websites. </p>
<p>I'm basically a newbie, so any old-timers are probably reading this and groaning... I hope not. But just in case, this is what seemed to work, finally, for me. </p>
<p>Take away: Try this: to change the name of "htaccess.txt", upload the file using Filezilla onto your hard drive, then change the name of the file while it's on your hard drive (you can do this while still in Filezilla). Then upload the newly renamed file ".htaccess" back onto the server. Go into your Global Config and turn on SEF and mod_rewrite and see if it works. Good luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-14207</link>
		<dc:creator>Steven</dc:creator>
		<pubDate>Wed, 02 Apr 2008 10:59:16 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-14207</guid>
		<description>I really appreciate this article.  In trying to figure out why my .htaccess rewrites were not working I came across this article.  However, I am still going to move my sites to another host.  GoDaddy does not allow external database connections, nor can I find any way to setup a cron.</description>
		<content:encoded><![CDATA[<p>I really appreciate this article.  In trying to figure out why my .htaccess rewrites were not working I came across this article.  However, I am still going to move my sites to another host.  GoDaddy does not allow external database connections, nor can I find any way to setup a cron.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Octopus</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-13671</link>
		<dc:creator>Octopus</dc:creator>
		<pubDate>Thu, 13 Mar 2008 05:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-13671</guid>
		<description>I had the problem on a GoDaddy virtual server.  I read your article and was convinced there would definitely be a solution for my Drupal 'clean directorie names'.

I noticed that although the rewrite rule didn't do as expected on:
http://www.myvirtualdomain.com/

it actually did work on:
http://mymastergodaddydomain.com/myvirtualdomainpath/

So I knew i was a path related problem.  My solution was to change:
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
to:
  RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]

(notice the extra / to distinguish the path correctly)

This stopped it from working in my 2nd example (as expected) but made it work correctly for where it mattered on:

http://www.myvirtualdomain.com/

Alternatively, it was discovered that I could add:
  RewriteBase /
and leave the initial RewriteRule

In any event the secret to making it work is to experiment.

I've also noticed that sometimes the change takes affect immediately and on other occassions I've had to wait several minutes.</description>
		<content:encoded><![CDATA[<p>I had the problem on a GoDaddy virtual server.  I read your article and was convinced there would definitely be a solution for my Drupal 'clean directorie names'.</p>
<p>I noticed that although the rewrite rule didn't do as expected on:<br />
<a href="http://www.myvirtualdomain.com/" rel="nofollow">http://www.myvirtualdomain.com/</a></p>
<p>it actually did work on:<br />
<a href="http://mymastergodaddydomain.com/myvirtualdomainpath/" rel="nofollow">http://mymastergodaddydomain.com/myvirtualdomainpath/</a></p>
<p>So I knew i was a path related problem.  My solution was to change:<br />
  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]<br />
to:<br />
  RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]</p>
<p>(notice the extra / to distinguish the path correctly)</p>
<p>This stopped it from working in my 2nd example (as expected) but made it work correctly for where it mattered on:</p>
<p><a href="http://www.myvirtualdomain.com/" rel="nofollow">http://www.myvirtualdomain.com/</a></p>
<p>Alternatively, it was discovered that I could add:<br />
  RewriteBase /<br />
and leave the initial RewriteRule</p>
<p>In any event the secret to making it work is to experiment.</p>
<p>I've also noticed that sometimes the change takes affect immediately and on other occassions I've had to wait several minutes.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Skramstad</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-13304</link>
		<dc:creator>Michael Skramstad</dc:creator>
		<pubDate>Sat, 01 Mar 2008 22:42:39 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-13304</guid>
		<description>I’m using the GoDaddy shared Linux plan and my .htaccess file isn’t working. Maybe their configuration has been changed. I want URLs that begin with http://mikeskramstad.com to redirect to the “www” version. Here’s the code:

RewriteEngine on
Options -MultiViews FollowSymLinks
RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.mikeskramstad\.com$ [NC]
RewriteRule ^(.*)$ http://www.mikeskramstad.com/$1 [R=301,L]</description>
		<content:encoded><![CDATA[<p>I’m using the GoDaddy shared Linux plan and my .htaccess file isn’t working. Maybe their configuration has been changed. I want URLs that begin with <a href="http://mikeskramstad.com" rel="nofollow">http://mikeskramstad.com</a> to redirect to the “www” version. Here’s the code:</p>
<p>RewriteEngine on<br />
Options -MultiViews FollowSymLinks<br />
RewriteBase /</p>
<p>RewriteCond %{HTTP_HOST} !^www\.mikeskramstad\.com$ [NC]<br />
RewriteRule ^(.*)$ <a href="http://www.mikeskramstad.com/1" rel="nofollow">http://www.mikeskramstad.com/1</a> [R=301,L]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Timothy W. Crane</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-12217</link>
		<dc:creator>Timothy W. Crane</dc:creator>
		<pubDate>Sun, 20 Jan 2008 07:09:27 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-12217</guid>
		<description>I am soooo glad I found your article, just in the nick of time. I was just getting ready to call GoDaddy for another slugfest over access rights, when I read your article reminding me that nothing happens fast with this hosting. By the time I got done with your article, my rewrites were working. Best thing that could have happened. I'm sure they would have sat on the phone with me getting every page to redirect needlessly and killing my seo attempt in the process.</description>
		<content:encoded><![CDATA[<p>I am soooo glad I found your article, just in the nick of time. I was just getting ready to call GoDaddy for another slugfest over access rights, when I read your article reminding me that nothing happens fast with this hosting. By the time I got done with your article, my rewrites were working. Best thing that could have happened. I'm sure they would have sat on the phone with me getting every page to redirect needlessly and killing my seo attempt in the process.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BJ</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11785</link>
		<dc:creator>BJ</dc:creator>
		<pubDate>Sun, 16 Dec 2007 16:15:33 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11785</guid>
		<description>My godaddy account had multiviews turned on which do some "smart rewriting" of their own before mod_rewrite does...which causes problems. After turning off multiviews, all my old mod_rewrite stuff worked again. To turn off multiviews add this to your htaccess file:

Options -MultiViews

I wrote a little more about it on my bog:
http://www.btjones.com/2007/12/09/godaddy-mod_rewrite-problem-fix/</description>
		<content:encoded><![CDATA[<p>My godaddy account had multiviews turned on which do some "smart rewriting" of their own before mod_rewrite does...which causes problems. After turning off multiviews, all my old mod_rewrite stuff worked again. To turn off multiviews add this to your htaccess file:</p>
<p>Options -MultiViews</p>
<p>I wrote a little more about it on my bog:<br />
<a href="http://www.btjones.com/2007/12/09/godaddy-mod_rewrite-problem-fix/" rel="nofollow">http://www.btjones.com/2007/12/09/godaddy-mod_rewrite-problem-fix/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11590</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Mon, 03 Dec 2007 23:20:22 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11590</guid>
		<description>Thanks for the notice, Jim, and the other commenters that highlighted this.  I've removed the strikethroughs accordingly.</description>
		<content:encoded><![CDATA[<p>Thanks for the notice, Jim, and the other commenters that highlighted this.  I've removed the strikethroughs accordingly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jim</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11589</link>
		<dc:creator>Jim</dc:creator>
		<pubDate>Mon, 03 Dec 2007 23:08:48 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11589</guid>
		<description>Tom, thanks for this post. I do want to post here that I just pulled my hair out uploading, deleting, reuploading, uploading through FTP, uploading through the Account Manager at GoDaddy, uploading in binary, reuploading in ascii... then I found this post.

Even though the strikethroughs indicate the delay issue was fixed, it currently isn't. I waited 5 minutes, and poof! Worked like it's supposed to.

So, hopefully this little addition will let other poor souls know to wait just a bit and stop screaming at your poor htaccess file. 

Jim
http://www.findmytee.com</description>
		<content:encoded><![CDATA[<p>Tom, thanks for this post. I do want to post here that I just pulled my hair out uploading, deleting, reuploading, uploading through FTP, uploading through the Account Manager at GoDaddy, uploading in binary, reuploading in ascii... then I found this post.</p>
<p>Even though the strikethroughs indicate the delay issue was fixed, it currently isn't. I waited 5 minutes, and poof! Worked like it's supposed to.</p>
<p>So, hopefully this little addition will let other poor souls know to wait just a bit and stop screaming at your poor htaccess file. </p>
<p>Jim<br />
<a href="http://www.findmytee.com" rel="nofollow">http://www.findmytee.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11452</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Mon, 26 Nov 2007 08:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11452</guid>
		<description>Thanks for your answers, Dave... I stopped using GoDaddy a long time ago, so I can't really help on this issue.

Their modifications, such as grabbing PHP out in the early stages of the request, make debugging .htaccess behaviour fairly tricky, so it's difficult to guess what's going to happen.

Plus, the fact that rewrite rules can be fairly tricky on their own!</description>
		<content:encoded><![CDATA[<p>Thanks for your answers, Dave... I stopped using GoDaddy a long time ago, so I can't really help on this issue.</p>
<p>Their modifications, such as grabbing PHP out in the early stages of the request, make debugging .htaccess behaviour fairly tricky, so it's difficult to guess what's going to happen.</p>
<p>Plus, the fact that rewrite rules can be fairly tricky on their own!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Allen</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11426</link>
		<dc:creator>Dave Allen</dc:creator>
		<pubDate>Sun, 25 Nov 2007 02:08:04 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11426</guid>
		<description>You may need to add


redirectmatch 301 ^/test/(.*)$ /test.php</description>
		<content:encoded><![CDATA[<p>You may need to add</p>
<p>redirectmatch 301 ^/test/(.*)$ /test.php</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Allen</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11425</link>
		<dc:creator>Dave Allen</dc:creator>
		<pubDate>Sun, 25 Nov 2007 01:29:26 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11425</guid>
		<description>is the .htaccess file on the test/ directory?


Email me the full htaccess file info dave dot allen (at symbol) shaw dot ca</description>
		<content:encoded><![CDATA[<p>is the .htaccess file on the test/ directory?</p>
<p>Email me the full htaccess file info dave dot allen (at symbol) shaw dot ca</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ash</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-11416</link>
		<dc:creator>Ash</dc:creator>
		<pubDate>Sat, 24 Nov 2007 02:29:18 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-11416</guid>
		<description>I want to do same thing

www.test.com/test/abc to

www.test.com/test.php?param=abc


On my hosting directory my site is not hosted on root, but it is hosted at in a directory in root say xyz

So when I write in my .htaccess-

RewriteEngine On
RewriteRule ^test/(.*) test.php?param=$1

now when I use your method and write url -
www.test.com/test/abc

it gave 404 error -
The requested URL /xyz/test.php was not found on this server.

How should I change the .htaccess file ?</description>
		<content:encoded><![CDATA[<p>I want to do same thing</p>
<p><a href="http://www.test.com/test/abc" rel="nofollow">http://www.test.com/test/abc</a> to</p>
<p><a href="http://www.test.com/test.php?param=abc" rel="nofollow">http://www.test.com/test.php?param=abc</a></p>
<p>On my hosting directory my site is not hosted on root, but it is hosted at in a directory in root say xyz</p>
<p>So when I write in my .htaccess-</p>
<p>RewriteEngine On<br />
RewriteRule ^test/(.*) test.php?param=$1</p>
<p>now when I use your method and write url -<br />
<a href="http://www.test.com/test/abc" rel="nofollow">http://www.test.com/test/abc</a></p>
<p>it gave 404 error -<br />
The requested URL /xyz/test.php was not found on this server.</p>
<p>How should I change the .htaccess file ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave Allen</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-10899</link>
		<dc:creator>Dave Allen</dc:creator>
		<pubDate>Thu, 08 Nov 2007 20:44:11 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-10899</guid>
		<description>I did something with godaddy, its not pretty but it works for permalinks etc.

First you create a page:
http://whateverdomain.com/com/content.php?page=events&#38;id=101
where the page is made up of content dynamically taken from a database using the two parameters passed in the URL (page and id)

Set your .htaccess file to show

redirectmatch 301 ^/content/(.*)$ /content.php

RewriteEngine On
RewriteRule ^content/(.*) /content.php?var=$1

I used the info above that 

"Requests for PHP files (eg. http://gidden.net/tom/item.php) are intercepted well before .htaccess (and definitely mod_rewrite) activate. So, mod_rewrite will not work on URLs for PHP files.

# However, it will allow redirections to PHP files."

So I made up a fake, non php file and url containing the two parameters that I needed i.e.

http://whateverdomain.com/content/events/101/index.asp

which will then redirect to:

http://whateverdomain.com/content.php?var=events/101/index.asp

A little php on the content.php:

$data = explode("/",$_GET['var']);
$page = $data[0];
$id = $data[1];

And everything works beautifully.  Very awkward, but it works.

Hope this helps!</description>
		<content:encoded><![CDATA[<p>I did something with godaddy, its not pretty but it works for permalinks etc.</p>
<p>First you create a page:<br />
<a href="http://whateverdomain.com/com/content.php?page=events&amp;id=101" rel="nofollow">http://whateverdomain.com/com/content.php?page=events&amp;id=101</a><br />
where the page is made up of content dynamically taken from a database using the two parameters passed in the URL (page and id)</p>
<p>Set your .htaccess file to show</p>
<p>redirectmatch 301 ^/content/(.*)$ /content.php</p>
<p>RewriteEngine On<br />
RewriteRule ^content/(.*) /content.php?var=$1</p>
<p>I used the info above that </p>
<p>"Requests for PHP files (eg. <a href="http://gidden.net/tom/item.php" rel="nofollow">http://gidden.net/tom/item.php</a>) are intercepted well before .htaccess (and definitely mod_rewrite) activate. So, mod_rewrite will not work on URLs for PHP files.</p>
<p># However, it will allow redirections to PHP files."</p>
<p>So I made up a fake, non php file and url containing the two parameters that I needed i.e.</p>
<p><a href="http://whateverdomain.com/content/events/101/index.asp" rel="nofollow">http://whateverdomain.com/content/events/101/index.asp</a></p>
<p>which will then redirect to:</p>
<p><a href="http://whateverdomain.com/content.php?var=events/101/index.asp" rel="nofollow">http://whateverdomain.com/content.php?var=events/101/index.asp</a></p>
<p>A little php on the content.php:</p>
<p>$data = explode("/",$_GET['var']);<br />
$page = $data[0];<br />
$id = $data[1];</p>
<p>And everything works beautifully.  Very awkward, but it works.</p>
<p>Hope this helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom Gidden</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-2161</link>
		<dc:creator>Tom Gidden</dc:creator>
		<pubDate>Wed, 18 Apr 2007 18:12:03 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-2161</guid>
		<description>It should be something like:

  RewriteEngine On
  RewriteRule ^test/(.*) test.php?param=$1

in /.htaccess</description>
		<content:encoded><![CDATA[<p>It should be something like:</p>
<p>  RewriteEngine On<br />
  RewriteRule ^test/(.*) test.php?param=$1</p>
<p>in /.htaccess</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alok Kumar</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-2160</link>
		<dc:creator>Alok Kumar</dc:creator>
		<pubDate>Wed, 18 Apr 2007 18:04:35 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-2160</guid>
		<description>Hi,

I have to redirect a url on godaddy web hosting serer. but it is not happening.


www.test.com/test/abc then it should be changed into

www.test.com/test.php?param=abc


Reply

Thanks</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I have to redirect a url on godaddy web hosting serer. but it is not happening.</p>
<p><a href="http://www.test.com/test/abc" rel="nofollow">http://www.test.com/test/abc</a> then it should be changed into</p>
<p><a href="http://www.test.com/test.php?param=abc" rel="nofollow">http://www.test.com/test.php?param=abc</a></p>
<p>Reply</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ryan</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-1550</link>
		<dc:creator>Ryan</dc:creator>
		<pubDate>Fri, 30 Mar 2007 07:16:57 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-1550</guid>
		<description>I still have to wait a few minutes for .htaccess to take effect on GoDaddy. One of those aggravating occasions where a computer problem mysteriously fixes itself given time.</description>
		<content:encoded><![CDATA[<p>I still have to wait a few minutes for .htaccess to take effect on GoDaddy. One of those aggravating occasions where a computer problem mysteriously fixes itself given time.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sharwan</title>
		<link>http://gidden.net/tom/2006/05/26/4/#comment-86</link>
		<dc:creator>Sharwan</dc:creator>
		<pubDate>Thu, 08 Feb 2007 03:35:05 +0000</pubDate>
		<guid isPermaLink="false">http://gidden.net/tom/?p=4#comment-86</guid>
		<description>Thanks Tom,

I was facing this trouble from last few weeks and was unable to configure it out. but now mod_rewrite on godaddy works perfect for me.</description>
		<content:encoded><![CDATA[<p>Thanks Tom,</p>
<p>I was facing this trouble from last few weeks and was unable to configure it out. but now mod_rewrite on godaddy works perfect for me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
