On of my client asked me to create an Web App in PHP, I ended up using Symfony. At delivery, he told me that he has distributed a software with an embedded Web view pointing to a hardcoded url :
http://www.domain.com/dir/tools.php
Now he wants the Web app to appear in it’s Web View, but the software isused by about 400 customers, we can’t expect the hard coded URL to be changed.
How do you think I can do that in clean way :
- Create http://www.domain.com/dir/tools.php and use a redirection ? Which one and how ?
- Use URL rewriting ? Any snippets appreciated, I have no Idea how to do that.
Apache mod_rewrite:
EDIT: As noted, this goes in your .htaccess file. The mod_rewrite documentation I linked has more information. Fixed .