• Resolved BlueLaw

    (@bluelaw)


    Hey People,

    I know .htaccess posts will have been done to death, but my head starts spinning as soon as I start reading them. Can you help me out with my problem?

    I installed wordpress and created a load of pages. I have a .htaccess file with permission set to 666. I recently tried to customize the permalinks but my pages have remained where they were originally, so the new links take you to a “Not Found, The requested URL /films/ was not found on this server.” – page
    If I change my permalink structure back to the default setting all the pages work again. But then I have to have the ugly “/?page_id=10” Format.
    Any Clues?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Some questions to be clarified before attempting “nice” permalinks (although millions of blogs live happily with the “ugly” ones!)
    1. Are you on Apache server?
    2. Is mode_rewrite and AllowOverride enabled on the server?
    3. Is actually WP writing to the htaccess file? (you can check it by downloading it and checking the code)

    You mentined only the Pages. Do the other internal links (cat, archive, single pst) work?

    Thread Starter BlueLaw

    (@bluelaw)

    Haha! Nobody likes ugly permalinks!

    Thanks a lot for getting back to me. My knowledge is limited, but I’ll try and answer your questions.

    1) Fairly certain I’m using an Apache server, yes. I know I’ve got mysql and PHP.

    2) I think mode re_write etc are fine on my server. The thing is, I have another website with the same company which also has a wordpress blog on it, one that I changed the .htaccess file on and it works fine. No trouble at all. I can’t think what I’ve done differently.

    3) Wordpress does say that it has successfully written onto the .htaccess file. I tried changing the permission of the file so that you couldn’t write on it. When I tried to update the permalink structure wordpress said the file was not writable (as you’d expect) so presumably it is writing to the htaccess file when it’s set to 666.

    I have one post. I called it “Hi” – you click on it and you get a Not Found error again. So same problem with posts too.
    Thanks in advance!

    Thread Starter BlueLaw

    (@bluelaw)

    I’ll give you some more information on what I’ve done. See if you can help me out. This is my amateur trial and error approach and may well be the reason nothing is working…

    I downloaded the (working) .htaccess file from my other website. I opened it in Dreamweaver and deleted the code. I replaced the code with this:

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

    I then uploaded it to my new website (the one which does not work) and I made sure the permissions were set to 666.

    I then went into wordpress and updated the permalink structure (succsfully)

    – So why when I click around my site do I get 404 errors? Not on the fist page, but any page off that.

    Please help!

    Thread Starter BlueLaw

    (@bluelaw)

    The Permalinks are CHANGING but the pages are staying in the same place.

    So for Example, the new address for my contact page is:
    https://www.forgemastersfilms.com/contact/

    but the contact page stays here:
    https://www.forgemastersfilms.com/?page_id=7

    – with the old permalink address.

    Why? How?

    Thread Starter BlueLaw

    (@bluelaw)

    – B U M P –

    Thread Starter BlueLaw

    (@bluelaw)

    Bizarrely, I’ve managed to sort this problem for myself – to a satisfactory standard anyway.

    I opted for custom permalink structure and typed this:

    /index.php/%postname%

    And it works! – it’s not perfect but it’s good enough, play about with it.

    Satisfactory!

    Thanks for this work around. It helped me get mod_rewrite of work for me, now I just need to figure out how to get gallery2’s mod_rewrite to work inside of wordpress. That is my next hurdle or next migraine.


    DWW

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