PDA

View Full Version : Simple URLs


Shuttheduckup
20-10-2009, 13:33
Hi,

Can you please paste me .htaccess code for simple URLs? As it was not added automatically.

Nvm, found it.

Nick
20-10-2009, 13:51
.htaccess with rewrite looks like this :

DirectoryIndex index.php
Options -MultiViews -Indexes +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+)$ - [L]
RewriteCond $1 !(\.css)|(\.js)|(\.ico)|(\.swf)|(\.jpg)|(\.png)|(\ .gif)|(^widgets.*)$ [NC]
RewriteRule ^(.*)$ index.php [QSA,NC,L]

To get simple URLs, you'll also need to set this:
"simple-url: on" in theme{}
in _cnf/[Your_domain].cnf.php.