homepage Welcome to WebmasterWorld Guest from 54.198.224.121
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Redirect alias problem?
Does not find an available file
jodan




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

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




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

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

jdMorgan




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

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved