How do I make "Friendly URLs" work?

Created by Greg
Keywords:
Configuration
Last updated by:
Greg

To have Friendly URLS (https://answers.launchpad.net/phpdevshell/+faq/526) work, you need to properly configure your web server, in order that it handle every request and rewrite it for PHPDS to handle it. A configuration file is provided for Apache HTTPd, as it's the main open source web server available. To enable it:

- check your server main configuration allow per-directory configuration (the related directive is AllowOverride: http://httpd.apache.org/docs/2.0/mod/core.html#allowoverride)
- rename the provided file named "rename.htaccess" into ".htaccess" (the default behavior of *nix system is to make files with named starting with a dot invisible so it will probably disappear).
- go to the page "System Settings" of your PHPDS installation and set "Enable Friendly URLs" to Yes

Now PHPDS will generate URL with names instead of numerical ID.

IF YOU GET a "page not found" ERROR: that means your server don't handle the rewrite process. Use your favorite MySQL request tool (PHPMyAdmin, MySQL Query Browser, ...), edit the content of the table "core_settings" (the name of the table has prefix which is installation dependant), look for the row "PHPDevShell_sef_url" and set the corresponding field to "false".