Welcome to HostingForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Is mod_rewrite enabled?

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  IIS 6.0 + Exchange 2003 SP1 + service unavailable  
Author Message
user2777

External


Since: May 11, 2004
Posts: 27



(Msg. 1) Posted: Thu Jan 13, 2005 11:35 am
Post subject: Is mod_rewrite enabled?
Archived from groups: alt>apache>configuration (more info?)

I installed from source Apache 2.0.43 and PHP 4.3.8 on Redhat 9 (no other
problems) but have come across a mod-rewrite query that I can't find
answered.

When I installed Apache, I used the "--enable-rewrite" switch (checked
..bash_history to make sure) and until today thought now more about it.
However I have upgraded some of my website software and it now requires this
module. No problem I thought because it came with an .htaccess file and I
assumed was mod_rewrite was working.

However the links wouldn't work and it was quickly suggested this was
because mod_rewrite wasn't enabled. I then ran PHPINFO(); and under "Loaded
Modules" was mod_rewrite. I then checked the server's httpd.conf file but no
mention of mod_rewrite.

I look at the /usr/local/apache2/modules and only php appeared.

So the question is, is mod_rewrite loaded or not?

Cheers

Phil

 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 2) Posted: Thu Jan 13, 2005 11:35 am
Post subject: Re: Is mod_rewrite enabled? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-01-13, Phil Latio <phil.latio RemoveThis @f-in-stupid.co.uk> wrote:
 > Modules" was mod_rewrite. I then checked the server's httpd.conf file but no
 > mention of mod_rewrite.
 > So the question is, is mod_rewrite loaded or not?

httpd -l will list the modules that are built-in. Built-in modules don't
need mention in httpd.conf (they are built-in).
Only modules that are 'shared' need to be loaded in httpd.conf

Davide

--
I can't wait for EDLIN to be ported for Windows.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
user2777

External


Since: May 11, 2004
Posts: 27



(Msg. 3) Posted: Thu Jan 13, 2005 11:35 am
Post subject: Re: Is mod_rewrite enabled? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

It seems I should using:

--enable-shared=rewrite

Cheers

Phil
 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
user2777

External


Since: May 11, 2004
Posts: 27



(Msg. 4) Posted: Thu Jan 13, 2005 12:35 pm
Post subject: Re: Is mod_rewrite enabled? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > httpd -l will list the modules that are built-in. Built-in modules don't
 > need mention in httpd.conf (they are built-in).
 > Only modules that are 'shared' need to be loaded in httpd.conf

Oh.. just checked and the little critter is in there. Hmm.. perhaps the
problem is something else entirely.

Cheers

Phil<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 5) Posted: Thu Jan 13, 2005 12:35 pm
Post subject: Re: Is mod_rewrite enabled? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-01-13, Phil Latio <phil.latio.DeleteThis@f-in-stupid.co.uk> wrote:
 > Oh.. just checked and the little critter is in there. Hmm.. perhaps the
 > problem is something else entirely.

Yes, maybe you need to add a RewriteEngine On somewhere.
Davide

--
[It] contains "vegetable stabilizer" which sounds ominous. How unstable
are vegetables? --Jeff Zahn<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
user2777

External


Since: May 11, 2004
Posts: 27



(Msg. 6) Posted: Thu Jan 13, 2005 1:35 pm
Post subject: Re: Is mod_rewrite enabled? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

 > Yes, maybe you need to add a RewriteEngine On somewhere.
 > Davide

"RewriteEngine On" is already in the .htaccess file in the directory.

I have been doing some reading on this and it seems some users are getting
problems while others are not.

I am beginning to think that I should used:
--enable-shared=rewrite
rather than:
--enable-rewrite
when I installed Apache 2.0.xx

Some people seem to suggest on other threads/questions that the code I used
is specifically for Apache 1.3.xx

Perhaps the software is actually looking for a shared object rather
something built-in?

Cheers

Phil<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 7) Posted: Thu Jan 13, 2005 1:35 pm
Post subject: Re: Is mod_rewrite enabled? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 2005-01-13, Phil Latio <phil.latio.RemoveThis@f-in-stupid.co.uk> wrote:
 > "RewriteEngine On" is already in the .htaccess file in the directory.

Maybe you need to 'enable' the .htaccess? There is a AllowOverride All
in the <Directory > block ?

 > I am beginning to think that I should used:
 > --enable-shared=rewrite

In that case you'd have added the LoadModule directive in the httpd.conf,
but there is no other difference (there shouldn't be any).

 > Some people seem to suggest on other threads/questions that the code I used
 > is specifically for Apache 1.3.xx

Afaik the rewrite directives are the same for 2.x and 1.3.

Davide

--
This is an air conditioned room -- do not open Windows!<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Is mod_rewrite enabled? 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting Problem Solving Community! (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]