# How do I force Friendly URLs to turn on?

**URL:** <https://discourse.farcrycore.org/t/how-do-i-force-friendly-urls-to-turn-on/176>\
**Category:** howto\
**Created:** [May 27, 2014, 5:32am UTC](https://discourse.farcrycore.org/t/how-do-i-force-friendly-urls-to-turn-on/176 "2014-05-27T05:32:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![modius](https://discourse.farcrycore.org/user_avatar/discourse.farcrycore.org/modius/32/1197_2.png) [@modius](https://discourse.farcrycore.org/u/modius)\
**Post date:** [May 27, 2014, 5:32am UTC](https://discourse.farcrycore.org/t/how-do-i-force-friendly-urls-to-turn-on/176/1 "2014-05-27T05:32:31Z")

</div>

When your application starts it checks for whether or not **Friendly URLs** have been correctly configured on the web server by pinging a special URL for a response:

`http://domain/pingFU` OR `http://domain/sub-directory/pingFU`

If friendly URLs are not working on server restart, but `/pingFU` works successfully, it’s possible that the `pingFU` check itself is failing temporarily on server restart. This can happen if your server is slow or in some security configurations.

You can force friendly URLs to be **always on** by activating the Friendly URL service with a config on application start.

Edit your project’s `/projects/yourProjectName/config/_serverSpecificVarsAfterInit.cfm` config and add the following line of code anywhere in that file:

`<cfset application.fc.factory.farfu.turnon() />`

Now restart the app and it should be in place.

Copious amounts of detail on Friendly URLs, and how they can be activated for a multitude of environments is available on the FarCry WIKI:

[https://farcry.jira.com/wiki/display/FCDEV50/Friendly+URLs](https://farcry.jira.com/wiki/display/FCDEV50/Friendly+URLs)
