Welcome to WebmasterWorld Guest from 54.163.40.152

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Redirect alias problem?

Does not find an available file

     

jodan

4:10 pm on Aug 23, 2006 (gmt 0)

5+ Year Member



I can see the mod_rewrite is trying to work. When I put the simple redirect in our .htaccess:

RewriteEngine on
RewriteRule ^1$ home.php

and type in example.org/1, the following error message is returned:

Not Found
The requested URL /home/org/example/html/home.php was not found on this server.
________________________________________
Apache/1.3.36 Server at example.org Port 80

There is a home.php file in our /home/html subdirectory, the document root. Is this an alias problem? What to do? Thanks!

[edited by: jdMorgan at 4:47 pm (utc) on Aug. 23, 2006]
[edit reason]
[1][edit reason] Examplified [/edit]
[/edit][/1]

jodan

4:21 pm on Aug 23, 2006 (gmt 0)

5+ Year Member



I mean, is this mod_rewrite and alias problem? Thanks again!

jdMorgan

5:46 pm on Aug 23, 2006 (gmt 0)

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member



It looks like you have a configuration problem, but it's impossible to tell whether it's an Alias directive interfering, an incorrect DocumentRoot, or something else. You'll just have to investigate the server configuration.

If /example/html is the document root, then the error message should have read:

The requested URL /home.php was not found on this server.

You could also try a syntax tweak to see if it helps, but it's still just a work-around that only covers up the root problem:


RewriteEngine on
RewriteRule ^1$ [b]/h[/b]ome.php [L]

Jim
 

Featured Threads

Hot Threads This Week

Hot Threads This Month