Forums

Travel Blog Permalink Problem (3 posts)

  1. jorosar
    Member
    Posted 2 years ago #

    I have a dreaded permalink problem, and while I suspect there may be no solution, I can hopefully summarise the problem rather quickly.

    I run a travel blog and I find it difficult to categorise my posts. For example, my Category structure for a particular post would be like this:

    Destinations --> Australia --> Sydney

    If I leave just "Sydney" ticked in the categories box of the post, the URL shows up nicely in my Permalink structure as /destinations/australia/sydney/%postname%. However, if someone wants to see all the places I went to in Australia, and typed in /destinations/australia/ - they would get a 404 error!

    Alternatively, if I tick "Destinations", "Australia" and "Sydney" for the post, my permalink URL will for some reason only show as /destinations/%postname%. However, going to /destinations/australia/ will now show all my Australian posts.

    Is there a way for me to sort out my Permalink structure for each place I visit (Country/Place/Postname) AND somehow keep the 'filing system' intact? Ideally I'd want a list of "Countries I've visited" links on the sidebar where each link shows all the places I've been in each country - but I do not know how this is technically possible.

    Thanks - fingers crossed I've been clear!

  2. jorosar
    Member
    Posted 2 years ago #

    Anybody? :P

  3. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    Reset your permalink from wordpress admin area and add this code in htaccess of your blog:

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

    Now, check with your blog posts.

    Thanks,

    Shane G.

Topic Closed

This topic has been closed to new replies.

About this Topic