hi,
I am trying to use rewrite engine with .htaccess but rewrite module doesn’t started up, or doesn’t even exist. How can I cope with this particular issue?
hi,
I am trying to use rewrite engine with .htaccess but rewrite module doesn’t started up, or doesn’t even exist. How can I cope with this particular issue?
On Mon, 06 Dec 2010 02:36:01 +0530, yasar11732
<yasar11732@no-mx.forums.opensuse.org> wrote:
>
> hi,
>
> I am trying to use rewrite engine with .htaccess but rewrite module
> doesn’t started up, or doesn’t even exist. How can I cope with this
> particular issue?
>
in all the recent versions of apache2 i’ve seen on openSUSE, you have to
enable the module in /etc/sysconfig/apache2
–
phani.
Yes, that worked. Thanks.
I just had another problem with htacces file, when I use → Options -indexes it doesnt work. I have putted it just like it in htaccess. Should I use something like:
<Directory * >
Options -indexes
</Directory>
This didnt work either, but is it something like that?
On Mon, 06 Dec 2010 05:06:01 +0530, yasar11732
<yasar11732@no-mx.forums.opensuse.org> wrote:
>
> I just had another problem with htacces file, when I use → Options
> -indexes it doesnt work. I have putted it just like it in htaccess.
> Should I use something like:
>
> <Directory * >
> Options -indexes
> </Directory>
>
> This didnt work either, but is it something like that?
>
i don’t understand, where do you want to disallow display of dir. indexes:
in your httpd.conf or one of the vhost.conf files, or in an .htaccess file
within the directory tree served by apache2 ?
if you don’t mention “Indexes” under “Options” in httpd.conf, they
shouldn’t be allowed anywhere. if you want to control index display in
local .htaccess files, you have to include “AllowOverride Indexes” (unless
you’ve set “AllowOverride All” already, of course).
–
phani.
I want to disallow indexes throughout my website, however I don’t want to do it with apache config files, because when I uploaded my site to a server, I most probably won’t be able to access or modifiy those. Thus, I want to learn how to do it via hhtaccess file.
Thanks in advance.
On Mon, 06 Dec 2010 16:06:01 +0530, yasar11732
<yasar11732@no-mx.forums.opensuse.org> wrote:
> I want to disallow indexes throughout my website, however I don’t want
> to do it with apache config files, because when I uploaded my site to a
> server, I most probably won’t be able to access or modifiy those. Thus,
> I want to learn how to do it via hhtaccess file.
you do that as you mentioned earlier, by specifying “-Indexes” in
…htaccess. it works only if “AllowOverrides” is enabled in the config file
though. most webhosts do allow if not all, but certain overrides via
…htaccess. depends on your specific case. to play around locally, i’d
specify “AllowOverrides All” in your config file, so .htaccess can change
all possible settings.
–
phani.