• Resolved NetAlien

    (@netalien)


    Hi,
    I’ve had some luck with WP; except that every page/post which is on the local server gives 404 errors. No luck at finding the culprit until now…

    None of the threads I’ve checked have provided the answer. A few minutes ago, I deleted *everything* from previous WP attempts to try a fresh start.

    Installed 3.3.1, and without doing anything beyond updating one default plugin included in 3.3.1, hit “Visit Site” and ALL links which are local now seem to work. I was very happy to finally see a working site…

    UNTIL… in Settings->Permalinks, changed to Post Name and the Hello World link gives 404. .htaccess contains:

    # 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

    OK… Edit this Post, Update…
    Still get 404… revert back to Default Permalinks and Hello World is back… .htaccess contains:

    # BEGIN WordPress
    
    # END WordPress

    So it appears WP itself is broken simply by turning on /%postname%/ permalinks… ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • your server does not support mod_rewrite. ask your service provider

    Check with your hosts that mod_rewrite is running on your server.

    Thread Starter NetAlien

    (@netalien)

    Did more digging on rewrite in Apache’s httpd.conf and found this:

    Rewriting in Virtual Hosts

    By default, mod_rewrite configuration settings from the main server context are not inherited by virtual hosts. To make the main server settings apply to virtual hosts, you must place the following directives in each <VirtualHost> section:

    RewriteEngine On
    RewriteOptions Inherit

    Also found AllowOverride None — changed None to All

    In case this helps someone, I found this tool which tests one’s server for basic rewrite functionality: https://www.webune.com/forums/viewtopic-p-62.html

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Changing Permalink type gives 404 errors’ is closed to new replies.