Problem with Alias in .htaccess

Samynou

New Pleskian
Hello,

I use Plesk 11.0.9 on CentOS 6.3

I'm trying to set an Alias in a .htaccess like this :
Alias "/inscription" "/phplist"

But I have a 500 Error and in the error_log i have this :
[alert] [client XX.XX.XX.XX] /var/www/vhosts/domain.com/.htaccess: Alias not allowed here.

What can i do ?
Thanks
 
Last edited:
f you want to have just a simple 301 redirection then you can try adding this to your .htaccess :

Code:
redirect 301 /contact_new.html http://www.mysite.com/contact/
or you can do it like this:
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^contact_new.html$ /contact/ [L]

I hope this helps.
 
Back
Top