Store
Community Documentation

v3 Knowledgebase

Short URLs & Rewrite Rules

In order to enable short URL's with phpFox you will need mod_rewrite, most servers today have support for this. To enable this feature open the file on your server:
htaccess.txt

Look for:
RewriteBase /

If you have installed phpFox2 in a sub-folder you will need to change the trailing slash with the sub-folder path. For example if you installed your site on:
http://www.yoursite.com/folder/

You will need to change the RewriteBase to:
RewriteBase /folder/

If you installed your phpFox2 in your sites root directory (eg. http://www.yoursite.com ) you can leave this setting as it is.

Next lets rename the file
htaccess.txt

to
.htaccess

Once you have done that open the file
/include/setting/server.sett.php

and look for
$_CONF['core.url_rewrite'] = '2';

and replace that with
$_CONF['core.url_rewrite'] = '1';

By setting this to "1" this will transform your sites URLs from:
http://www.yoursite.com/index.php?do=/blog/title/

to
http://www.yoursite.com/blog/title/

Save and close the file. You should now have short url's enabled on your site.