Forum Moderators: phranque

Message Too Old, No Replies

proxy request using .htaccess

         

lleighh

3:17 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



the following is not working for me ...

RewriteEngine on
RewriteRule ^index\.html$ http://www.example.com/ex/index.php [R,L]

neither does

RewriteEngine on
RewriteRule ^index\.html$ http://www.example.com/ex/index.php [P,L]

i want the statements to make the url stay the same (index.html) even when the files really sit on another server (under another dns).

there are other statements in the .htaccess file; ones that have to do with user access, would they be competing somehow with the rewriterule statements?

ChadSEO

10:12 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



Do you have access to the apache error logs? If so, look for a line like

[Wed Jul 6 16:10:10 2005] [error] [client 123.456.789.000] File does not exist: proxy:http://www.example.com/

Could be that mod_proxy is not installed/active.

lleighh

10:53 pm on Jul 6, 2005 (gmt 0)

10+ Year Member



could it be that mod_rewrite is not on either?

(error logs? where would they be ... at the root level?)

ChadSEO

2:31 pm on Jul 7, 2005 (gmt 0)

10+ Year Member



Is this your server, or someone else's? If this is your server, open the httpd.conf file, and look for the ErrorLog directive; this will tell you were the file is located. Typical locations are /usr/local/apache/logs/error_log
and /var/log/httpd/error_log. Also, if this is your server, find out where the httpd program is, usually /usr/local/apache/bin/httpd or /usr/sbin/httpd. When you find it, run /usr/sbin/httpd -l (or whatever the correct path is), and it list the modules that are compiled in.