• Resolved squarefrog

    (@squarefrog)


    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 modules

    Heres the specs of my hosting:
    Apache version: 1.3.37 (Unix)
    PHP version: 4.4.4

    Thanks for your time.

Viewing 2 replies - 1 through 2 (of 2 total)
  • What hosting company are you using?
    I’m using Lycos as my host and I had trouble with my rewrite rules not working

    The only way I could get it working was by using the Verbose Rewrite Rules plugin.
    Download from https://boren.nu/downloads/rewrite.phps

    Thread Starter squarefrog

    (@squarefrog)

    I don’t know how but I’ve sorted it. What I’ve done is chmod the .htaccess file so WP could write it.

    I have no idea how that made it work.

    My host is oxyuk.net – I moved to them about a month ago and they are fantastic. I can configure almost everything myself with CPanel, and mod_rewrite is enabled by default ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Struggling with mod_rewrite’ is closed to new replies.