• Hi. I’m new to wordpress, but I’ve spent two days reading posts without coming across anything similar to my problem, maybe it’s something obvious that I’m missing…

    When I try to get pretty permalinks on my site, they work on the pages and the blog entries, but not in my portfolio – that’s where I get the 404 error. When I go to the default permalink settings, I get the ?p=123 ugly permalinks on my pages and blog entries…but NOT on my portfolio, they show up as what seems to be pretty permalinks. So it’s half ugly, half pretty. I don’t know what to do.

    My site is hosted at GoDaddy, the WP is at the root, the .htaccess has there and is enabled for writing…., I’ve flushed the permalinks and all the other suggestions, yet nothing resolves it. Maybe I’m putting the wrong custom structure into the permalink settings, I just am not sure what I’m doing. Any help would be greatly appreciated.

    http://www.picturiapress.com

    Right now it’s set to default permalinks.

Viewing 15 replies - 1 through 15 (of 32 total)
  • did you use custom structure with /%postname%/ in the box

    Thread Starter zannasf

    (@zannasf)

    Thank you for a response. When I put in the custom structure, what happens is all the pages and the blog posts become “pretty”, but then in the portfolio…the individual pages generate a 404 message.

    I have just changed it to the custom structure (/%postname%/) so you can see what happens now…

    http://www.picturiapress.com

    I am having a similar problem. i did use /%postname%/ in the custom structure box. When I test the link to the page it goes to the write page but there is a 404 error.

    I read a help file that tells me to edit (or create) a .htaccess file. You need to update the .htaccess to include the following code.

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

    The problem I have is that I get an error message stating.

    ” If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.”

    So I edited the file manually but I still cannot view the page. Any ideas how to make this work?

    Thread Starter zannasf

    (@zannasf)

    I already have that exact code in my .htaccess file being done automatically by wordpress, but that doesn’t fix a thing.

    The other thing can be is your Host not switched on mod_rewrite

    check with your host.

    I found this article about how to test if mod-rewrite is on.

    http://www.tutorio.com/tutorial/enable-mod-rewrite-on-apache

    When I did a search for my site using a browser I typed ” http://localhost/mywebsite_folder_name ” I was able to see the home page.

    So this tells me that mod_rewrite is working.

    I also changed the permission of the .htaccess file so that everyone could access it using the chmod command. This allowed wordpress to save the setting of the permalink. However I still cannot see the contents of the page. It still shows 404 error.

    Any ideas?

    Thread Starter zannasf

    (@zannasf)

    Thanks everyone, still no success. It’s is hosted on godaddy, so they have assured me that the apache mod_rewrite is by default enabled.

    I’m having the exact same problem, unable to get the custom structure /%postname%/ to work.

    @zannasf I visited your website and I see that you have solved your problem with custom structure can you please post what you did to solve the problem so @lasninas can hers working.

    On my website I never had that problem from day one so it can only be that wordpress does not have access to .htaccess to update the file or the server does not have mod_rewrite on.

    Just like to point out to you guys since many are using the /%postname%/ custom permalink structure.

    This is a quote from the official documentation here at wordpress.org and applies specificly to those that have lots of pages in their blog:

    For performance reasons, it is not a good idea to start your permalink structure with the category, tag, author, or postname fields. The reason is that these are text fields, and using them at the beginning of your permalink structure it takes more time for WordPress to distinguish your Post URLs from Page URLs (which always use the text “page slug” as the URL), and to compensate, WordPress stores a lot of extra information in its database (so much that sites with lots of Pages have experienced difficulties). So, it is best to have at least two path segments in your post’s permalink structure such as /%year%/%post_name%/ or even /posts/%post_name/. (Some people recommend /%post_id%/%post_name%/ which works for performance reasons but others recommend against it because it is unfriendly to users in the many contexts in which users interact with URLs.) See Otto’s technical writeup on the topic as well as this wp-testers discussion.

    Thread Starter zannasf

    (@zannasf)

    Hi GOVPATEL. I haven’t resolved the problem. I still have 404 errors on my portfolio pages. Unfortunately…..still looking for a solution

    I just visited your website http://www.picturiapress.com and I see all pages open with clean links.

    http://www.picturiapress.com/portfolio/business-fundraising/

    Thread Starter zannasf

    (@zannasf)

    Hi again. Yes, this part is true, but when you drill down from that category into an actual portfolio item, it generates a 404.

    Thread Starter zannasf

    (@zannasf)

    I should add that the strangest thing I’ve come across is that several posts actually do show up, like…one in every ten. There’s no logic to it, it’s not one category, it’s not one post date. I’ve looked at each of the posts, there’s nothing different about them in any way… Which makes absolutely no sense at all.

    I see what you mean when you posted did you have portfolio as your category and books,weddings as sub category or are they all in portfolio.

Viewing 15 replies - 1 through 15 (of 32 total)
  • The topic ‘Permalinks – 404 Error’ is closed to new replies.