Forum Moderators: phranque
http://www.example.com/modules.php%C2?name=NukeC
http://www.example.com/modules.php?name=Forums
http://www.example.com/modules.php?name=Forums&file=posting
(So everything that ends with: modules.php*)
to
http://www.example.com/subdir
Is there a way to do so with htaccess? From subdir to subdir i do understand, but from wildcard to one specific subdir.... i dont have a clue. :-(
Already thanks for any help!
[edited by: jdMorgan at 1:57 pm (utc) on May 8, 2009]
[edit reason] example.com [/edit]
Please see the resources cited in our Apache Fourm Charter [webmasterworld.com] to get started.
Our Apache Forum Library [webmasterworld.com] also contains several useful threads and tutorials.
Jim
The thing that i still can't get to work is that i want them forwarded to a directory but not append the portion after modules.php to the new url. Just go to subdir, and thats it.
What i put in:
RewriteRule ^modules.php http://www.example.com/subdir/ [R=301,L]
Now:
http://www.example.com/modules.php?name=Forums&file=posting
goes to
http://www.example.com/subdir/?name=Forums&file=posting
instead of
http://www.example.com/subdir/
anybody?