• Resolved willow6

    (@willow6)


    i’m having trouble with my permalinks – i want them to be just the post.page name however if i set this up under the custom setting using %postname% the pages do not display and i get a message saying the page does not exist and contact my host service.

    however if I use /index.php/archives/%postname% in the custom box the pages all load correctly.

    I don’t particularly want the /index.php/archives part in my permalink though if possible. Can anyone help me??

Viewing 15 replies - 1 through 15 (of 25 total)
  • Did you put in the custom box
    %postname%

    OR

    /%postname%/

    The second one should work. Here is a site that helped me:
    http://perishablepress.com/press/2008/02/06/permalink-evolution-customize-and-optimize-your-dated-wordpress-permalinks/

    One of the things it touches on (other than changing your permalinks to just have the post name) is how to get it that should there be any external links to your older posts, it will redirect. I ultimately decided not to play with my htaccess file and downloaded this plugin so any external links to my blog could find there way to the correct post: http://www.microkid.net/wordpress/permalinks-moved-permanently/comment-page-8/#comment-23454

    Hope this helps.

    Thread Starter willow6

    (@willow6)

    Hi,
    Thanks for your suggestion.

    I tried the second one but it didn’t work…I also tried /%category%/%postname%/
    which i saw on the site you linked me to – but that didnt work either!I’m a bit nervous about messing with the htaccess file as I’m not confident enough that i know what i’m doing (i’m a TOTAL novice!)

    Does anyone have any other ideas??

    are you on windows or linux hosting?

    Thread Starter willow6

    (@willow6)

    linux…

    OK, that’s good

    when you set permalinks, does it tell you everything is fine, or give you some code to put into an .htaccess file?

    Thread Starter willow6

    (@willow6)

    when i update it with any code..

    either /&postname%/ (which doesnt actually work on the site then)

    or

    /index.php/archives/%postname% or any other custom code it just says

    “Permalink structure updated” at the top of the screen.

    Thread Starter willow6

    (@willow6)

    …..i dont know if this is relevant but i’m using a theme called
    “purple aura theme”

    I had a temporary problem with my htaccess file. It would tell me it was updated like you mentioned, but still didn’t work. I don’t have the link, but somewhere on this site the show the code for what the basic htaccess file should be. I saved the problem one (as a backup) and replaced it with the code suggested here and it seemed to work after that (I also cleared my internet cache because my browser was being naughty and not picking up my changes). If you try this, definitely make a back up as I’m more or less a beginner at this but suggesting only because it worked for me.

    My issue was due to a plugin I had installed, called picpoket (even though I had uninstalled it), so whatever plugins you have might be useful for others to help you.

    Have you tried changing it to one of the pre-determined ones to see if they work?

    Thread Starter willow6

    (@willow6)

    i’ll have a look around and see if i cn find that article. thanks.

    i’ve tried the pretty links plugin but had no success with it

    Moderator James Huff

    (@macmanx)

    Thread Starter willow6

    (@willow6)

    thanks! – it all seems quite technical to me – finging things through my host ontrol panel…ftp…etc…

    not really sure i have the technical know how for this!

    Thanks, James.. that was the post I was talking about.

    willow6, Where did you install wordpress? For example if you installed in so your blog shows at http://www.yoursite.com/blog, then you will find the htaccess file under public_html –> blog

    When you find it, to look at what it says, download it to your computer and you can open it with notepad to see what it says.

    Thread Starter willow6

    (@willow6)

    i installed wordpress through my host control panel using the 1 click install method. So I guess this file will be a folder somewhere on my hosts control panel? my site is at millinersboutique.com
    so just to check – i’m looking in my control panel for public_html (my page )

    really apreciate the help!!

    Thread Starter willow6

    (@willow6)

    ok i loged into my control then clicked on the “web” folder – the first file in that folder is a .htaccess file (but if i hover my mouse over the icon it says “unknown file type”

    if i download the file this is the code within in:

    # BEGIN AnyFont
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^images/(.*)\.png$ /wp-content/plugins/anyfont/img.php [L]
    </IfModule>

    # END AnyFont

    # -FrontPage-

    IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    </Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    </Limit>
    AuthName “www.millinersboutique.com”
    AuthUserFile /content/HostingPlus/m/i/www.millinersboutique.com/web/_vti_pvt/service.pwd
    AuthGroupFile /content/HostingPlus/m/i/www.millinersboutique.com/web/_vti_pvt/service.grp

    panrl and under file manager

    As per the link offered earlier in this thread: http://codex.wordpress.org/Using_Permalinks#Creating_and_editing_.28.htacces

    Where’s my .htaccess file?
    Wordpress’s index.php and .htaccess files should be together in the directory indicated by the Blog address (URI) setting on your General Options page”

    To find your “General Options” page you go into your wordpress admin page click on “Settings” then “General“. There you will find two options “WordPress address” and “Site address“. I am assuming both have http://millinersboutique.com listed, which means your posts should show as:

    http://millinersboutique.com/postname

    and NOT something like this:

    http://millinersboutique.com/wordpressorsomething/postname

    (On my site, I use the latter format and have two htaccess to mess up lol)

    The .htaccess file will be not be recognizable so that is fine (as you saw you can still open it/edit it in Notepad.) My basic understanding of htaccess is it basically tells the browser how to get to your posts. As per that link again, it looks like your htaccess file is missing one important code block that tells the browser how to find your wordpress posts and that is:

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

    When I had issues, one reason was because this was missing. The other was because a plugin had written other stuff on it. It is okay for plugins to write stuff on your htaccess file, but sometimes it breaks it.

    I can see from what you have posted that you have at least two plugins that influence the htaccess file: AnyFont and FrontPage. So from here you can try two things: add the missing code and see if it works, or deactivate those those plugins first then see if it works.

    Most people would suggest to deactivate those plugins and then go from there, however, even if it works after you deactivate them, once you reactivate them again, you may come across the same problems – and I assume you want to see it you can keep those plugins, right?

    What I would try:
    1. Keep the .htaccess file downloaded ‘as is’ (in case you want to come back to this state) – possibly save it in a folder called ‘old‘ to not confuse with any new htaccess you have to work with.

    2. Open that .htaccess file and the code I pasted above to the beginning of the htaccess file (ie before “# BEGIN AnyFont“)and resave the file as .htaccess in a different location on your PC than the original (another folder names “new” for example.)

    Notepad will try to put a .txt extension on it, so try to prevent that by changing “save as type” from “Text Documents (txt)” to “All Files (*.*)” so if you can save it without that extension. However this doesn’t always work and you may still find it saved on your PC as “htaccess.txt“. If so, open it again and resave save it without the txt on the end (with “All files (*.*)” selected. I have found that the second try works.

    3. Upload this new .htaccess file to the same spot on your website where you found the original. It will warn you that you are replacing the original, which is what you want to do.

    Check your site (you may have to clear your internet cache). If everything works, great! But if not, you many have to get rid of those plugins.

    I think we are on the right track.. just now I did a search for “index/php htaccess” and came up with this thread with a similar issue to yours (except they have no plugins and are using a subdirectory):

    http://wordpress.org/support/topic/i-cannot-get-rid-of-indexphp-in-permalinks-htaccess?replies=7

Viewing 15 replies - 1 through 15 (of 25 total)

The topic ‘Permalinks’ is closed to new replies.