Koozali.org: home of the SME Server

HTACCESS working, mod_rewrite doesnt

Offline MasthaX

  • ***
  • 52
  • +0/-0
HTACCESS working, mod_rewrite doesnt
« on: August 27, 2007, 06:33:23 PM »
Hello, after reinstalling my server i finally got the HTACCESS working. this brought some problems with it for accessing the ibay in case. I fixed this by adding

Code: [Select]
order allow,deny
allow from all

but as soon as i add
Code: [Select]
rewriteEngine On
RewriteRule ....

it will deny my access and getting a message that im not allowed to access this ibay. Does anyone know how to solve this? and still using rewrite engine.

Edit:

I have seen in the httpd.conf file that the rewrite engine is on by default but it doesnt work when i add some rewrite rules so.
« Last Edit: August 27, 2007, 06:43:38 PM by MasthaX »
There's no place like 127.0.0.1

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: HTACCESS working, mod_rewrite doesnt
« Reply #1 on: August 27, 2007, 08:33:29 PM »
Hello, after reinstalling my server i finally got the HTACCESS working. this brought some problems with it for accessing the ibay in case. I fixed this by adding

Code: [Select]
order allow,deny
allow from all
Which means that the ibay is probably open for every user and every host... Why would you need .htaccess? Are you perhaps installing software in an ibay? If so this is a bad idea, ibays are not used for that.

You should install software in /opt or /var tree and create a proper template fragment to share it to the intra/internet. That way you also won't need htaccess as you can easily store your directives in the template fragment.

but as soon as i add
Code: [Select]
rewriteEngine On
RewriteRule ....

it will deny my access and getting a message that im not allowed to access this ibay. Does anyone know how to solve this? and still using rewrite engine.

Edit:

I have seen in the httpd.conf file that the rewrite engine is on by default but it doesnt work when i add some rewrite rules so.
Are you still able to access the server manager by typinh http://server/server-manager and the webmail by accessing http://server/webmail? If you try to access http:// and get referred to https:// your rewrite engine is working properly and there probably is some error in your rewrite rule. It might helpto post them here, perhaps we can spot the error. Next time please specify all details as we want to help but hate to guess :-)
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)