• Resolved shecodes

    (@shecodes)


    Right now I’m really stuck. I’ve successfully migrated a live wordpress site to localhost using the duplicator plugin which makes the whole process very painless. Except, I just can’t get the permalinks to work. I’ve saved to default then resaved back to postname but it wont work, changed the name of the htaccess file in the process so a new one was created and still no joy. I get an error “the requested url was not found on this server”. But default settings work fine. So I checked some previous sites that I have sitting on localhost and none of the permalinks work, so I’m guessing this is not a plugin issue. However, the one big change is that I have upgraded to yosemite quite recently.

    My set up is Mac OSX Yosemite 10.10.5 with MAMP 3.0.7.3
    From reading through forum posts and problems others have had with yosemite I’ve made a couple of changes to the system httpd.conf (as described here) by changing the AllowOverride line to read ‘AllowOverride All’ and uncommented ‘LoadModule rewrite_module libexec/apache2/mod_rewrite.so’

    I’ve also made a change to the MAMP httpd.conf file as explained here, to change to
    ‘Options Indexes FollowSymLinks
    AllowOverride All’
    but still can’t get the permalinks to work.

    Any help would be very much appreciated.
    Thanks,
    Nathalie

Viewing 10 replies - 1 through 10 (of 10 total)
  • Try changing to any default WordPress theme and then change back to your theme. also try this Solution

    Hi there,

    Have you tried updating MAMP to the latest version?

    Thread Starter shecodes

    (@shecodes)

    Thank you both for your responses. However. Still no joy. I have now updated MAMP as a last resort, but had resisted because I’d found comments from several threads that everything broke after the update. And yep, I now can’t access anything. Pull out hair time. Im getting an error from all browsers ‘can’t establish a connection to the server at localhost’. I’ll keep trying to see if I can fix…

    ‘can’t establish a connection to the server at localhost’ This is a common problem. You need to create a new database in your MySQL database and then install wordpress on it.

    Thread Starter shecodes

    (@shecodes)

    I’ve managed to get MAMP working again (some good news) so at least I can open my wordpress sites and access the admin. To do this I changed the MAMP preference ports settings to 80 for apache, 808 for nginx and 3306 for mysql. But sadly updating to the latest MAMP has made no change to the permalinks working other than the default.

    I’ve also turned off all plugins, and changed to a default theme, switched between default and postname settings for the permalinks, but the problem still persists and only the default will work. Also retested past projects again.

    If there’s other suggestions I would greatly appreciate any help.

    Can you show me the contents of the .htaccess file in the root of your web folder?

    Thread Starter shecodes

    (@shecodes)

    Thanks mindctrl and ashiquzzaman, after taking a break I think I’ve fixed it along with your help. I’ve changed the names of the folders the site was located in, so I could reset both the home and siteurl in mysql. Then reopened in browser and permalinks now working. Whiskey time.

    Colin

    (@colin100)

    Hi shecodes/Nathalie. Could you do me a big favor and explain in a little more detail how you solved the problem with the permalinks and .htacces? I’m having the same trouble except that my mamp still works. I have tried all the mod_rewrite and FollowSymLinks and AllowOverride All tips in all the forums that I’ve found but still no result. WordPress keeps saying: The requested URL /Test030WP/index.php was not found on this server.
    I am working on OS 10.9.4 with Firefox 42, MAMP 3.4 and WordPress 4.3.1

    I’m kinda new at this game and especially the MySQL bit is daunting.

    Much appreciated if you could help out of maybe you have a link.
    Thanks
    Colin

    Thread Starter shecodes

    (@shecodes)

    Hi Colin

    I also renamed the directory containing the migrated site on my localhost to remove a space between characters. Then it worked. Sometimes it can be the littlest of things…

    Colin

    (@colin100)

    Hi Nathalie. Thanks a million! That was indeed the trick. I changed the name in the Theme in Settings-general (I took out the %20 bits) and then changed the name of the websitefolder (in the htdocs folder of Mamp) accordingly. At first the mywebsite link from the Mamp startpage would then not open to the website. But then manually changing the name in the addresswindow to the new one without the spaces got me there. After that it all seemed to work. Even changing it back to default and vice versa worked.

    Thanks again!

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Permalinks wont work other than default’ is closed to new replies.