My Project is completed in Symfony 1.4 framework (PHP). Its set up on my small machine and that i can access the applying as http://localhost:8082.
My web addresses are just like
xhttpx://localhost:8082/login xhttpx://localhost:8082/logout xhttpx://localhost:8082/new/item xhttpx://localhost:8082/item/edit/id/34 etc.
Now i wish to change my web addresses to
xhttpx://localhost:8082/pink/login xhttpx://localhost:8082/pink/logout xhttpx://localhost:8082/pink/new/item xhttpx://localhost:8082/pink/item/edit/id/34 etc.
i.e. append pink following the base url (http://localhost:8087).
I wish to accomplish this without modifying the Symfony 1.4 files (e.g. routing.yml etc).
I suppose we are able to accomplish this by modifying the httpd.conf by writing appropriate rewrite rule.
Note: please read xhttpx as http, as stackoverflow wasn't permitting me to publish hyperlinks. Help.
Produce a .htaccess file within the root, that contains this:
Options +FollowSymLinks RewriteEngine on RewriteRule (.*) http://localhost:8082/pink/$1 [R=301,L]
This informs Apache to route all traffic within the folder the .htaccess is within to /pink/.