- For individual users
- Instant access to solutions
- Ask your tech questions
- Start your 30-day Free Trial
Main Topics
Browse All TopicsI am trying to create a redirect based on the url that someone comes from. So for example, if www.mydomain.com they get the index file, but if they come into www.mydomain.com/marc. they are redirected to a specific url. I have a table and code that pulls up the redirect, but when I put it into the application file it does not work. In the code below I end up with the index file working fine but if I use the /marc it drops out. I have tried this using both cflocation and cfheader.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: trailblazzyr55Posted on 2009-11-10 at 13:44:52ID: 25790227
The application.cfm isn't really the place for this. If you are hosting this box I'd recommend possibly doing it on the server using an ISAPI rewrite. I use Helicon on IIS to accomplish this. Apache has another way, depends on what you're using....
.com/techn iques/4226 -search-en gine- safe- ses-urls.h tm
k.com/
However if you are hosting somewhere else I'd look into this...
http://www.fusionauthority
Also not sure what type of framework you're working with or if your code base is custom, but Coldbox has a plugin for this, you could also download Coldbox and just look at the SES.cfc for an idea...
http://www.coldboxframewor
good luck...