• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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