Activare .htaccess

Spread the love

Enable .htaccess in iBay

log on using shell (putty, etc.) with the root username and password.

login as: root

root@server's password: password

Enter the following commands:

(where: my_ibay_name is the name of the ibay we want to enable for .htaccess override)

[root@server ~] db accounts setprop my_ibay_name AllowOverride All

[root@server ~] signal-event ibay-modify my_ibay_name

Allow FollowSymLinks

When we use mod_rewrite to implement ‘clean’ URLs for site pages, e.g. /blog rather than /blog.php, Apache must be instructed to follow symbolic links with the following command entered into the .htaccess file (above RewriteEngine On).

Options +FollowSymLinks

An example .htaccess file would look like this:

Options +FollowSymLinks

RewriteEngine On

# redirect all /whatever to /?page=whatever

RewriteRule ^([^/\.]+)/?$ /?page=$1 [L]

 

You may also like