• Resolved SpyrosM91

    (@spyrosm91)


    hi guys!

    i’m a bit rookie, and i have been making a website for a relative of mine. So, before putting it online, i have made a local server (with xammp) and i run it from there….

    in that server i have placed and other local websites and they work fine…

    now, for this specific website, i have installed the latest worpress version, and i have added a theme… i’ve also made a few pages, and it all works fine… BUT, when i go to the tab to choose to get pretty permalinks, then worpress imediately creates the .htaccess file (which it didn’t exist before…) and it blocks my server (error 500… Apache/2.4.4 (Win32) OpenSSL/0.9.8y PHP/5.4.19)

    the htaccess that gets created appear like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    which seems fine… i guess…

    and also i have checked with the server that in the “apache/conf/httpd.conf” the overwrite module is not commented out…

    what should i do?? do you have any ideas?
    thanks in advance!

    PS: if i delete the .htaccess, the home page works fine, BUT the other pages that now have a pretty permalink (eg. website.com/getting-started/), give me a 404 error…

Viewing 4 replies - 1 through 4 (of 4 total)
  • There’s nothing wrong with that .htaccess file. It’s a bog standard WordPress one. Are you running your own server? Only this sounds like a possible server issue.

    Thread Starter SpyrosM91

    (@spyrosm91)

    yes, i’m running xammp 3.2.1.

    but it doesn’t present a problem with my other local websites…
    it only does it with the worpress one, and when i try to use pretty permalinks…

    and in the httpd.conf server file, the following line is enabled
    LoadModule rewrite_module modules/mod_rewrite.so

    it only does it with the worpress one, and when i try to use pretty permalinks…

    All I can say is that there is nothing wrong with the .htaccees file and that WordPress with pretty permalinks should work just fine on a local XAMP server. It does on my server – on all 5 installs.

    Thread Starter SpyrosM91

    (@spyrosm91)

    yes, you are right!
    stupid me!!!!

    because i used a virtual host, i forgot to add inside the directory the “AllowOverride All” line… that’s why it didn’t work…

    thanks, for your help though!!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Permalinks and .htaccess Error’ is closed to new replies.