rewrites are redirecting

Discussion in 'General' started by suffeks, Oct 5, 2008.

  1. suffeks

    suffeks New Member

    hi,

    i seem to have a problem with some rewrites. i couldn't find a solution after searching.

    example:

    RewriteRule ^page/([0-9]+)$ http://www.example.com/page.php?id=$1

    it kinda works, if you request /page/1 it will load page.php?id=1, but it redirects to that php file, instead of leaving /page/1 in the address bar.

    at the top of my .htaccess i have:

    Options +FollowSymLinks
    RewriteEngine on


    anyone know what the problem might be?
  2. mistwang

    mistwang LiteSpeed Staff

    Get rid of "http://www.example.com" from the destination URL.
  3. suffeks

    suffeks New Member

    ah yes... that works!

    thanks

Share This Page