• Resolved mrqwak

    (@mrqwak)


    Hello!

    Hope someone can help or suggest something with the following problem…

    I’m running a wordpress site on my local machine (a Mac); and everything works fine, until I change the permalink setup.

    I suspect there’s something not setup quite right on my Mac, rather than it being a problem with wordpress, any plugin of theme.

    All my pages work fine when I use either the plain permalink option, or the custom option, with the following setting: /index.php/%year%/%monthnum%/%day%/%postname%/

    From what I can find online; I first thought there maybe an issue with the .htaccess file. I checked apache httd.conf file, and it looks like AllowOverride is set to All.

    My .htaccess as follows:

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

    Any suggestions?

    Also, just to rule anything out, I uninstalled all plugins, and it’s just using the default, I think 2019 theme.

    • This topic was modified 5 years, 11 months ago by mrqwak.
Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator t-p

    (@t-p)

    All my pages work fine when I use either the plain permalink option…

    If that works, then try reading Using_Permalinks before setting a custom permalink structure again.

    Thread Starter mrqwak

    (@mrqwak)

    Thank you t-p, that’s something to go on.

    No idea why the PATHINFO/”Almost Pretty”/index.php/ variety of permalink was selected. Pretty sure I didn’t originally set that, and I definintely didn’t enter the string for “/index.php/%year%/%monthnum%/%day%/%postname%/”.

    Anyhow, after reading through your link; my best guess is that apache isn’t setup correctly, and .htaccess is being ignored (looks like WP can create/write .htacess, so presumably permissions are not an issue.

    So, just 2 questions:

    1. After I’ve edited /etc/apache2/httpd.conf and /etc/apache2/user/<me>.conf; I just need to restart apache? Or do I also need to do something to wordpress, for example, set the permalink option again?

    2. Other than modifying http.conf etc, is there any other way to tell if apache is setup correctly?

    Many thanks for your help. ??

    Thread Starter mrqwak

    (@mrqwak)

    UPDATE:

    I’ve checked/edited the apache .conf files; and as far as I can see, they’re all okay.

    AllowOverride All
    and
    Options FollowSymLinks

    A bit lost.

    Thread Starter mrqwak

    (@mrqwak)

    Infact, looks like it’s defaulting to almost-pretty permalinks, for example:

    https://192.168.1.200/wp/test_parabola/index.php/2018/12/07/hello-world/

    Is that the default setting for WP?

    Moderator t-p

    (@t-p)

    That example shows one of the structure of pretty permalinks.

    You can see all structures of permalinks in your dashboard

    settings -> permalinks

    Thread Starter mrqwak

    (@mrqwak)

    Okay, this is now resloved.

    Turns out, the line in the apache config file, responsible for including the mod rewrite module, was commented out. Doh!

    Moderator t-p

    (@t-p)

    Glad to know it ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘404 / permalink problems’ is closed to new replies.