Quantcast
Channel: Adobe Community: Message List - ColdFusion
Viewing all articles
Browse latest Browse all 21760

Alias URLS based on directory - Redirect

$
0
0

I have 5 directories in my site that for organizational purposed I copied into one directory named usersites so they all would be in one place.

 

So I had these 5 directories before the change

 

website1

website2

website3

website4

website5

 

So before the change when my users accessed my site they would access these directories like this

 

www.mysite.com/website1/mypage.cfm or www.mysite.com/website2/mypage.cfm  etc

 

So now after the change the directories are in the usersites directory at 

 

www.mysite.com/usersites/website1/

 

I dont want to tell all of my users that they need to change their existing urls from

 

www.mysite.com/website1/pagename.cfm   to  www.mysite.com/usersites/website1/pagename.cfm

 

Is there a way that when one of my users accessess the  old directory that they will automatically be redirected to the new directory?

 

Maybe something in the application.cfm?

 

Just to make sure when a user comes in here www.mysite.com/website1/test.cfm I want them to gets redirected to www.mysite.com/usersites/website1/test.cfm

 

Thank you!


Viewing all articles
Browse latest Browse all 21760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>