Hi,
Some of the pages on our site have very bad formatting (due to a script that generates them) which we would like to change to a "pretty" URL for SE and visitors alike
Case 1:
http://www.example.com/index.php?folder=SOMETEXT-SOMETEXT
Which we would like to be shown and indexed as:
http://www.example.com/SOMETEXT-SOMETEXT/
Case 2:
http://www.example.com/index.php?page=FOLDER/SOMETEXT-SOMETEXT/FILENAME.txt
Which we would like to be shown and indexed as:
http://www.example.com/SOMETEXT-SOMETEXT/FILENAME/
Obviously http://www.example.com/SOMETEXT-SOMETEXT/ and http://www.example.com/SOMETEXT-SOMETEXT/FILENAME/ don't physically exist on the server - we just want them to appear to users and indexed on SE
Been struggling with various RewriteCond and RewriteRule with no success.
Any help will be greatly appreciated