| 259 | |
| 260 | |
| 261 | ---- |
| 262 | === nice URLs via htaccess === |
| 263 | |
| 264 | This paragraph is about having "nice" URLs, i.e., we want to allow the following TWO possible versions to access rdfhomepage pages:[[BR]] |
| 265 | {{{old version:}}} http://www.dfki.uni-kl.de/~schwarz/index.php?page=projects [[BR]] |
| 266 | {{{new version:}}} http://www.dfki.uni-kl.de/~schwarz/projects |
| 267 | |
| 268 | For this to work, you first have to copy or rename the {{{htaccess}}} to {{{.htaccess}}} in your myrdfhomepage directory (i.e., the directory where your config.php, homepage.rdf, etc. is in). |
| 269 | |
| 270 | Then for each page you have in rdfhomepage, you have to |
| 271 | 1. Edit the .htaccess file and add one mappings there. For each index.php?page=xxx, you will have an entry in .htaccess for xxx. Example for pages "projects" and "interests": |
| 272 | {{{ |
| 273 | <Files projects> |
| 274 | ForceType application/x-httpd-php |
| 275 | </Files> |
| 276 | <Files interests> |
| 277 | ForceType application/x-httpd-php |
| 278 | </Files> |
| 279 | }}} |
| 280 | 2. Create a symbolic link to index.php with the name of the page. Following the example with the "projects" page, you have to execute (unix/linux) |
| 281 | {{{ |
| 282 | ln -s index.php projects |
| 283 | ln -s index.php interests |
| 284 | }}} |