[PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Alberto García Gómez
Fellows, I need to change this configuration from my httpd.conf file to an 
.htacces file so my scripts can work in any apache without having access (or 
change) the server httpd.conf file

Here's the piece of the httpd.conf

RewriteEngine On
RewriteLogLevel 9
RewriteLog logs/server.com-rewrite_log
RewriteRule ^/(.*\.html)$ /index.php?$1 [L]
RewriteRule ^/(.*\.htm)$ /index.php?$1 [L]

What I need to do is put this redirection in the .htaccess file instead the 
httpd.conf file

Re: [PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Daniel Brown
On Thu, Apr 17, 2008 at 10:44 PM, Alberto García Gómez
[EMAIL PROTECTED] wrote:
 Fellows, I need to change this configuration from my httpd.conf file to an
  .htacces file so my scripts can work in any apache without having access (or
  change) the server httpd.conf file

  Here's the piece of the httpd.conf

  RewriteEngine On
  RewriteLogLevel 9
  RewriteLog logs/server.com-rewrite_log
  RewriteRule ^/(.*\.html)$ /index.php?$1 [L]
  RewriteRule ^/(.*\.htm)$ /index.php?$1 [L]

  What I need to do is put this redirection in the .htaccess file instead the 
 httpd.conf file

Congratulations!  That's great news!

So what's the question?  Is it not working?  It could be a matter
of overrides by server configuration in the host's httpd.conf, or
perhaps mod_rewrite isn't installed.

-- 
/Daniel P. Brown
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] FROM httpd.conf TO .htaccess

2008-04-17 Thread Wolf

 Alberto García Gómez [EMAIL PROTECTED] wrote: 
 Fellows, I need to change this configuration from my httpd.conf file to an 
 .htacces file so my scripts can work in any apache without having access (or 
 change) the server httpd.conf file
 
 Here's the piece of the httpd.conf
 
 RewriteEngine On
 RewriteLogLevel 9
 RewriteLog logs/server.com-rewrite_log
 RewriteRule ^/(.*\.html)$ /index.php?$1 [L]
 RewriteRule ^/(.*\.htm)$ /index.php?$1 [L]
 
 What I need to do is put this redirection in the .htaccess file instead the 
 httpd.conf file


Where's your PHP code that you are having an issue with?

Sure, some of us use apache, but this is a PHP list afterall.

What happened when you just pasted the above lines into .htaccess?



--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php