redirect configuration

Discussion in 'PHP' started by divinequran, Jul 24, 2009.

  1. divinequran

    divinequran New Member

    Joined:
    Oct 9, 2008
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Home Page:
    http://divinequran.com/
    Hi,

    i have redirected using the following code.

    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_URI} ^/(.*).htm
    RewriteRule ^(.*).htm http://www.mysite.com/test/test.php?ho=$1 [L]
    
    My requirement is to display test.php?ho=hi.htm as hi.htm . it displays properly on my site. but not on my localhost, how do i configure it? in my apache.
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    If your localhost is Windows then .htaccess files has lots of problems in Windows.
     
  3. divinequran

    divinequran New Member

    Joined:
    Oct 9, 2008
    Messages:
    62
    Likes Received:
    1
    Trophy Points:
    0
    Occupation:
    Software Engineer
    Home Page:
    http://divinequran.com/
    previously i used to work when i was using XAMP, now i have configured Apache2.2 on my machine and displays the URL as it is on the address bar.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice