SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot
    Join Date
    Dec 2010
    Posts
    167
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Mod Rewrite Used to Work - Now Fails

    I just changed servers and now two of my mod rewrite rules no longer work, but I have no idea why.

    Do you have any idea why these rules wouldn't work?

    RewriteRule ^u/(.*)$ /profile.php?u=$1 [QSA,L]
    RewriteRule ^c/(.*)$ /company.php?c=$1 [QSA,L]

  2. #2
    Certified Ethical Hacker silver trophybronze trophy dklynn's Avatar
    Join Date
    Feb 2002
    Location
    Auckland
    Posts
    14,680
    Mentioned
    20 Post(s)
    Tagged
    3 Thread(s)
    ue,

    Have you confirmed that mod_rewrite is enabled on the new server? AllowOverrides ALL? Have a look at my signature's tutorial for all that needs to be done on a server to enable mod_rewrite.

    I'd normally ask whether you're using Apache but, since IIS is emulating mod_rewrite, that should not be a problem.

    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


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
  •