Someone asked me to help him set-up a simple mod_rewrite rule in a .htaccess file. All looked so simple but unfortunately it did not work. Tried the code on a few other hosting services and it worked just as it should. A bit of digging and I found the following which cured the problem.
RewriteBase /
Just put that before your mod_rewrite rules in .htaccess and it works just fine.
p.s. This was on the cheapest GoDaddy Linux service (I say this because some people on the ‘net claimed that it does not work on the GoDaddy budget hosting account), other then that I must say the speed is not bad for a cheapo service
Can you post your .htaccess?
Comment by admin — April 13, 2008 @ 8:48 am
I´m trying to do url rewriting in Godaddy but with no success, this is what I used:
RewriteBase /
Options +FollowSymLinks
RewriteEngine on
RewriteRule lake_chapala_houses_for_sale_by_owner-idPropiedad-(.*)-title-(.*)\.html$ lake_chapala_houses_for_sale_by_owner.php?idPropiedad=$1&title=$2
I´m using Linux with configuration 2.0 in shared hosting.
Do you have any idea of whats wrong?
Thanks
Comment by Omar Chavez — November 16, 2008 @ 11:04 pm