Url Redirect

if user hits


://localhost/xm/xmds.php?wsdl

url, then i should be redirected to


://localhost/xm/consume/consume

how can i achieve this kind of redirect based on URL

You could add the check in your htaccess file.

Example:




#Redirect index.html to a specific subfolder:

# This allows you to redirect index.html to a specific subfolder

Redirect /index.html http://example.com/newdirectory/



I however don’t think this will work in a localhost environment, but you can try.