Friday, 25 July 2014

Vanity URL



1)      Create the webroot for the site, Now the question is how?
Go to the Admin Interface i.e Admin>WebRoots. Out of the box you will find the application deployed in the webapps>cs. Here I am building it for FirstSite(FSII)

2)      Add the URL Pattern, For that in the Admin Interface, goto>Admin>Asset Types>Page>URL Pattern>Add New
 

Add the pattern as ${f:spaceToUnderscore(name). toLowerCase()}.jsp , this will be available on the right tab under functions
3)      Generate the URL in the contributor Interface: Go to the Home Page asset>Clicki Edit and then Enter the URL

4)      Next come back to the Admin Interface, Go to Admin>SystemTools>URL: You will find the URL that has been created. Make sure WebRoot is created



5)      Next configure URL rewrite filter, In my case the application is already configured, If it is a new application then configure it in the section mentioned in Italics
<init-param>
<param-name>SitePrefix</param-name>
<param-value>fsii,avi</param-value>
</init-param>

Now check the URl in the browser
http://localhost:9080/cs/fsii/Vanitytest

No comments:

Post a Comment