SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Feb 2012
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    mod rewrite godaddy

    I am currently using this mod_rewrite on hostgator for a WordPress site and it works perfectly. However, it will not play nice with godaddy's hosting. Any suggestions on how to get it to work. I have tried different direct paths, but keep getting a 500 error.

    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    RewriteRule ^(.*)images/uploads/(.*) $1mymark.php?src=images/uploads/$2
    </IfModule>

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,644
    Mentioned
    19 Post(s)
    Tagged
    3 Thread(s)
    If I remember correctly, GoDaddy is (at least it was) one of the few hosts which either do not allow you to use .htaccess OR do not have mod_rewrite enabled. Remove the @#$% <IfModule> wrappers and see if that generates 500 errors (for EVERY request, i.e., be ready to add them back OR delete your .htaccess ... if this is all you have in it). That will tell you (a) whether .htaccess is being read and (b) whether mod_rewrite is installed.

    Regards,

    DK
    David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
    Client and (unpaid) WHB Ambassador
    mod_rewrite Tutorial Article (setup, config, test & write
    mod_rewrite regex w/sample code) and Code Generator

  3. #3
    SitePoint Enthusiast
    Join Date
    Feb 2012
    Posts
    61
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •