• Hi everyone,
    I’m trying to use url rewrite in a .htaccess file
    Say I have the following subdomain:
    test.example.com
    and I’m willing to rewrite this:
    test/example.com/mypage/SOME_NUMBER
    to this:
    test/example.com/mypage/?x=SOME_NUMBER

    Where should I put the rewrite call? the toot .htaccess or the sub .htaccess?
    I tried both of them and it didn’t work.

    I also tried this one:
    RewriteRule ^mypage/([0-9]+)/?$ test/mypage/$1 [NC,L]
    in many variations (without “test”, using dir etc) but no luck… \=

    Thank you.

  • The topic ‘Sub domain url rewrite’ is closed to new replies.