rewrite URLs (path, extension, parameters) PHP
Posted: Tue Apr 08, 2008 7:13 pm
I would like be able to rewrite URLs,
PHP would be best,
I read there are problems with bookmarking pages with most other techniques, such as frames etc -- (http://classicasp.aspfaq.com/general/ho ... ation.html) -- . I am doing this for usability sake and not for security.
For example, I would like to turn these
http://domain.com/folderA/a/b/file_1.php?text?moreText
http://domain.com/anotherFolder/file_2.php?otherText?1
http://domain.com/thisFolder/subFolder/ ... therText?2
into these
http://domain.com/standardFolder/file_1
http://domain.com/standardFolder/file_2
http://domain.com/standardFolder/file_3
the path needs to change, and the file extension and URL parameters need to be removed; while maintaining the functionality of passing variables through the URL (of course)
Thanx,
Nate
PHP would be best,
I read there are problems with bookmarking pages with most other techniques, such as frames etc -- (http://classicasp.aspfaq.com/general/ho ... ation.html) -- . I am doing this for usability sake and not for security.
For example, I would like to turn these
http://domain.com/folderA/a/b/file_1.php?text?moreText
http://domain.com/anotherFolder/file_2.php?otherText?1
http://domain.com/thisFolder/subFolder/ ... therText?2
into these
http://domain.com/standardFolder/file_1
http://domain.com/standardFolder/file_2
http://domain.com/standardFolder/file_3
the path needs to change, and the file extension and URL parameters need to be removed; while maintaining the functionality of passing variables through the URL (of course)
Thanx,
Nate