Enable Clean URL, then install and enable the Pathauto module, which allows to define custom URL patterns for custom content.
If the "Clean URL test" fails, you need to enable Apache's mod_rewrite
.
Usually, it is suffiscient to put this in .htaccess
:
RewriteEngine on
RewriteRule ^en/(.*)$ $1
If the above two line don't fix the problem, your web server is not set up to allow rewrite rules. In that case, it is necessary to enable an extension to the Apache web-server known as mod_rewrite
. You do this with the following shell command:
sudo a2enmod rewrite
Then navigate to /etc/apache2/sites-available
and edit the file named default
. Locate the following block of text:
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
And change the AllowOverride
directive to:
<Directory /var/www>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
When done, restart Apache.
sudo service apache2 restart
(The above example is assuming you're running a standard Apache configuration on Ubuntu ver. 12. YMMV, and you may have to dig out the documentation for your system to see how to do something similar.)