• mikej855

    (@mikej855)


    I have an issue with permalinks.

    I’ve created a number of portfolios. All they contain is some text and a feature image.

    I’ve enabled Post Name permalinks and visually verified that the .htaccess has been updated.

    My link for the portfolio when permalink is set to default is: https://localhost:8080/modtest/?portfolio=bbc-worldwide
    My link for the portfolio when permalink is set to Post Name is: https://localhost:8080/modtest/portfolio/bbc-worldwide/

    I now have a page, titled Case Studies which is a sub-page of About us and is using the template “Portfolio”

    I’ve published everything. Updated the misc.php file and changed the function got_mod_rewrite() so that the line:
    $got_rewrite = apache_mod_loaded(‘mod_rewrite’, true);
    is now:
    $got_rewrite = true;

    Unfortunately, I keep getting 404 errors. I’m developing on my local machine using xampp. Any suggestions? The theme that I’m using is Salient.

    I’m also using the latest version of wordpress and all of my plug-ins are up-to-date.

    Regards

    Michael.

Viewing 2 replies - 1 through 2 (of 2 total)
  • RossMitchell

    (@rossmitchell)

    My suspicion is that the “mod_rewrite” module is either not loaded or not active. Please save this text into a file and browse to it, it will show what is happening with mod_rewrite:

    <?php
    phpinfo();
    ?>

    On your own hosting save it in a file like “info.php”, but since it discloses potentially sensitive info, when you load it to hosting invent a more obscure name.
    Without mod_rewrite your .htaccess is not used.
    If you find it is not active, then start googling, or ask at the xampp support forum.

    Tahir Taous

    (@tahirtaous)

    YOU will have to enable Apache rewrite model. if using WAMP or XAMPP

    Click on WAMP icon > Apache > Apache models > Rewrite model

    click on rewrite model to enable it. Now Restart WAMP or XAMPP server. Permalinks will work fine.

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