Struggling with mod_rewrite
-
Hi, I’ve just installed wordpress 2.3. I’m trying to generate some friendly permalinks, but failing. If I copy the code
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
I get a 500 internal server error
If I just use
RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]
I get a 404 error. I don’t think the rewrite string is working properly. I use rewrite on my main site, so I know it does work.
If it helps these are my error logs:
404 –
File does not exist: xxx/xxx/xxx/blog/2007/10/09/hello-world/500 –
/xxx/xxx/xxx/blog/.htaccess: <IfModule takes one argument, Container for directives based on existance of specified modulesHeres the specs of my hosting:
Apache version: 1.3.37 (Unix)
PHP version: 4.4.4Thanks for your time.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Struggling with mod_rewrite’ is closed to new replies.