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

Mod_rewrite Problems

 
   Web Hosting Problem Solving Community! (Home) -> Apache RSS
Next:  Free and Reliable Web Hosting Providers  
Author Message
Lucanos

External


Since: Dec 29, 2007
Posts: 3



(Msg. 1) Posted: Sat Dec 29, 2007 11:17 pm
Post subject: Mod_rewrite Problems
Archived from groups: alt>apache>configuration (more info?)

Hey All,

I am running a Fedora Core 3 server, with Apache/2.0.53 and PHP/
4.3.11, with each user having their own folder under the server (ie '/
home/userOne/public_html' = 'server.com/~userOne')

I am trying to get the mod_rewrite module to work for me.

I have created two files in a test directory - 'test.html' and
'test.php' (as per the tutorial ay http://www.sitepoint.com/article/apache-mod_rewrite-examples),
and I have created the htaccess file as explained there too (in the
first exercise "The Magic of mod_rewrite")

I have confirmed that mod_rewrite is an active module within Apache.

Access to 'test.php' directly works fine, but access to 'test.html'
returns a 404 error with the following message:
"The requested URL /home/userOne/public_html/rewrite/test.php was not
found on this server."

Has anyone seen this before? What am I doing wrong?

Thanks, in advance,
Luke

 >> Stay informed about: Mod_rewrite Problems 
Back to top
Login to vote
Lucanos

External


Since: Dec 29, 2007
Posts: 3



(Msg. 2) Posted: Sat Dec 29, 2007 11:53 pm
Post subject: Re: Mod_rewrite Problems [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Dec 30, 6:39 pm, Davide Bianchi <davideyeahs....RemoveThis@onlyforfun.net>
wrote:
> > Has anyone seen this before?
>
> Piles of times,
>
> > What am I doing wrong?
>
> There could be a number of reasons, check your log files, there should
> be a better explanation for the error message, check the permissions
> on your files, be sure your .htaccess is used (directive AllowOverride
> in the directory block), and maybe, just post your rewrite instead of
> pretending that peoples goes looking for it in some webshite.
>
> Davide

Hi Davide,

I have set AllowOverride to "all" at almost every point in the config
file I found it.

htaccess file
----
RewriteEngine on
RewriteRule ^/?test\.html$ test.php [L]

rewrite log file
----
172.27.2.78 - - [30/Dec/2007:18:51:05 +1100] [172.18.7.22/sid#f752ae78]
[rid#f778db20/initial] (3) [per-dir /home/ccnmclab/public_html/
rewrite/] strip per-dir prefix: /home/ccnmclab/public_html/rewrite/
test.php -> test.php
172.27.2.78 - - [30/Dec/2007:18:51:05 +1100] [172.18.7.22/sid#f752ae78]
[rid#f778db20/initial] (3) [per-dir /home/ccnmclab/public_html/
rewrite/] applying pattern '^/?test\.html$' to uri 'test.php'
172.27.2.78 - - [30/Dec/2007:18:51:05 +1100] [172.18.7.22/sid#f752ae78]
[rid#f778db20/initial] (1) [per-dir /home/ccnmclab/public_html/
rewrite/] pass through /home/ccnmclab/public_html/rewrite/test.php

error message
----
Not Found
The requested URL /home/ccnmclab/public_html/rewrite/test.php was not
found on this server.

Thanks

 >> Stay informed about: Mod_rewrite Problems 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2994



(Msg. 3) Posted: Sun Dec 30, 2007 4:02 am
Post subject: Re: Mod_rewrite Problems [Login to view extended thread Info.]
Imported from groups: per prev. post (more info?)

Back to top
Login to vote
Display posts from previous:   
Related Topics:
problems with php and mod_rewrite - When Apache starts I get the message "PHP startup: unable to load the dynamic library: 'c:\program files\php \ext\php_exif.dll' - The specified module could not be found." Also I want to enable mod_rewrite, as per cakephp manual, with the line...

mod_rewrite directory - Hi, I am using mod_rewrite to re-direct all requests to a directory to a .php script using a set of commands similar to: RewriteEngine on RewriteRule !\.(gif|jpg|png|css)$ ../some_dir/handler.php [T=application/x-httpd-php] These reside within a..

Yet Another mod_rewrite SSL Question... - Hey Guys, I'm having an interesting issue with redirecting http traffic to https using mod_rewrite. First, I'll explain my setup a little bit. I'm running Apache 2.0.52 on Redhat. I basically have something that looks like this: Listen 80 Listen..

mod_rewrite dynamic directories - Hello all, Ihave a site that has dynamic kiosk stores and I can't seem to get everything to work how I want it to. 1. I need url.com/kiosk_name going to url.com/store/index.php? kiosk=kiosk_name (which I have that so far). 2. I need..

.htaccess / mod_rewrite - extrernal filters - The docs say there is an "external filter" option that can be used in ..htaccess / mod_rewrite can anyone point me at a tutorial or more information on this please? thank you Sandy
   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 ]