Removing index.php from URL

To get rid of the annoying /index.php/ in the URL, I did the following (thanx to baraboom and web.archive.org):
put this code into a file .htaccess in your main xaraya directory

RewriteEngine on
RewriteRule ^index\.php - [L]
RewriteRule ^val\.php - [L]
RewriteRule ^ws\.php - [L]
RewriteRule \.(jpg|gif|png|css|js)$ - [L]
RewriteRule ^(.+) index.php/$1 [L]

Additionally uncomment the last two lines in your var/config.system.php file

$systemConfiguration['BaseURI'] = '';
$systemConfiguration['BaseModURL'] = '';

Of course you need to have working Short URL support in articles first (in Articles/Modify Config/Defaults tick “Support short URLs” , and in your pubtypes configuration tick “Use Title in short URLs”)

[Update 16:48]
Another way is to follow the points 3 and onward on this xaraya document (thanx to fcd)

[Update 17:44]
Ok. I experimented some more and ended up with the following .htaccess file

# Dont let this file be accessed


order allow,deny
deny from all


# Dont let theme templates and install/upgrade files be accessed


order allow,deny
deny from all


# Rewrite Rules for getting rid of index.php

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+) index.php/$1 [L]

Kommentieren ist momentan nicht möglich.