.htaccess rewrite rule in WAMP

Discussion in 'Apache' started by nagesh25782, Sep 10, 2008.

  1. #1
    i want to redirect http://cupcake.local.in/~About_Us to http://cupcake.local.in/content_pages/displayurl . For this i have written
    following code in .htaccess :

    RewriteEngine On
    RewriteRule ^~(.*) content_pages/displayurl/$1 [L]

    This is working fine in apache server installed seperately but i am having problem when used in WAMP.

    I am getting following error:

    The requested URL /~About_Us was not found on this server.
    Apache/2.0.59 (Win32) PHP/5.2.0 Server at cupcake.local.in Port 80

    Mod_rewrite is working fine in WAMP. i have enabled it.

    Regards,
    nagesh
     
    nagesh25782, Sep 10, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    How did you test this?

    Jay
     
    jayshah, Sep 11, 2008 IP