1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Apache 301 question?

Discussion in 'White Hat SEO' started by darrensss, May 23, 2012.

  1. darrensss

    darrensss Power Member

    Jun 10, 2010
    Likes Received:
    Im setting up a .htaccess file on Apache with 301's
    This is my setting ...

    RewriteRule afoldername/page.php / [R=301,L]

    And this works file!
    Im trying to also code it so page.php?id=nxkgndj redirects to / but it keeps rdirecting to /?id=nxkgndj

    How can i fix this?

    RewriteRule afoldername/page.php?id=nxkgndj / [R=301,L]

    How can i make this 'nxkgndj' a wildcard so that it (and any other id) redirects to / and not /?id=nxkgndj