TSMJ
MIS
- Nov 27, 2002
- 83
Hi
I want to get mod_rewrite working. The commend "httpd -l" says that mod_rewrite.c is "compiled in", and phpinfo() also says that is compiled into apache. There is no mod_rewrite "LoadModule" line in httpd.conf.
I've added the following to the virtualhost 'mysite.com':
Options FollowSymLinks
RewriteEngine on
And tried the following to test it:
Trying to achieve this: mysite.com/check/1.php --> mysite.com/index.php
1. Created a .htaccess file in '/check' containing the following:
RewriteEngine On
RewriteBase /
RewriteRule ^check/1\.php$ /index.php [L]
2. Placed index.php in the root of 'mysite.com'
And it doesn't work - when you type you get a 404 (that 1.php doesn't exist - when it does you get 1.php displayed).
The reason I want it working is so that WordPress can work properly. WP works to a certain extent but it won't allow me to create new blogs as a new user and the setup 'wizard' complains that mod_rewrite is not installed.
Cheers - it would be such a relief to get this working.
TJ
I want to get mod_rewrite working. The commend "httpd -l" says that mod_rewrite.c is "compiled in", and phpinfo() also says that is compiled into apache. There is no mod_rewrite "LoadModule" line in httpd.conf.
I've added the following to the virtualhost 'mysite.com':
Options FollowSymLinks
RewriteEngine on
And tried the following to test it:
Trying to achieve this: mysite.com/check/1.php --> mysite.com/index.php
1. Created a .htaccess file in '/check' containing the following:
RewriteEngine On
RewriteBase /
RewriteRule ^check/1\.php$ /index.php [L]
2. Placed index.php in the root of 'mysite.com'
And it doesn't work - when you type you get a 404 (that 1.php doesn't exist - when it does you get 1.php displayed).
The reason I want it working is so that WordPress can work properly. WP works to a certain extent but it won't allow me to create new blogs as a new user and the setup 'wizard' complains that mod_rewrite is not installed.
Cheers - it would be such a relief to get this working.
TJ