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

A quick htaccess question

Discussion in 'BlackHat Lounge' started by SpazzyMcSpazz, Dec 13, 2009.

  1. SpazzyMcSpazz

    SpazzyMcSpazz Regular Member

    Joined:
    Apr 20, 2009
    Messages:
    261
    Likes Received:
    76
    I wanna do redirect all the stuff like
    domain.com/page1.html
    domain.com/page2.html
    domain.com/page3.html
    to
    domain.com/page

    but when I do:
    RewriteRule ^page(.+)$ http://domain.com/page [R=301,NC]

    it redirects to domain.com/page/ and I don't want that / at the end.

    is that even possible? How about just redirecting "page1" to "page.html" but in a way that the ".html" part doesn't show up when the redirect is done?