• 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 .htaccess and mod_rewrite

T

tkambler

Guest
I have the following .htaccess file in the root directory of one of my subdomains (/httpdocs):

Options +Indexes
RewriteEngine on
RewriteBase /
RewriteRule ^/logo /index.php?section=login

I am receiving the following error from Apache:

/httpdocs/.htaccess: Illegal option RewriteEngine

Can anyone shed some light on this?

Thanks!

Tim
 
Maybe, I've done a bit of this, but within the vhost.conf include on a domain.

Try

Options +Indexes
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^/logo /index.php?section=login
</IfModule>
 
Thanks for the reply...

I know how to do this within vhost.conf or any of the other main Apache config files. It's very important that I be able to control this from within .htaccess. I know it can be done.
 
Back
Top