Linx Trix

September 3, 2007

GoDaddy and mod_rewrite not working

Filed under: .htaccess, easy — admin @ 6:01 pm

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 :)

Share and Enjoy:
  • del.icio.us
  • Digg
  • Reddit
  • Slashdot
  • StumbleUpon
  • Live
  • Propeller
  • Technorati
  • Google Bookmarks
  • YahooMyWeb

2 Comments »

  1. Can you post your .htaccess?

    Comment by admin — April 13, 2008 @ 8:48 am

  2. 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

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress