Support » Fixing WordPress » Change permalinks only for single posts

  • Resolved Cryo

    (@cryo)


    I’ve been trying for days now and I can’t seem to get it.

    I’m trying to hide everything on my blog except the single posts. (single.php)

    If I install my blog on “www.test.com/wordpress”, then all the URLs will be something like “www.test.com/wordpress/…”

    I want to change the url of the single posts (single.php) to “www.test.com/…” but I want to keep all the rest (main page, archive, categories, etc.) on “www.test.com/wordpress/…” so users won’t be able to acces those things.

    I’ve tried some htaccess stuff, but I couldn’t get it to work.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Make everything private besides single post?

    Thread Starter Cryo

    (@cryo)

    That would be great.
    And how do I do that in wordpress?

    visibility > modify > public to private I think. And in reading options choose a static page for your front page and maybe a specific static page for your posts page. Maybe you will have to create new pages and built them and make the ones you want to be private private and the ones you want to be public public. Sorry for my english. Hope it helps.

    Thread Starter Cryo

    (@cryo)

    Thanks!! 🙂

    Definitaly will try it.
    Also found this:

    <?php global $current_user; get_currentuserinfo(); if ($current_user->user_level == 10 ) { ?>
      Admin Stuff (In my case I left this blank)
    <?php } else {   ?>
      Stuff Seen By Visitors
    <?php } ?>

    You welcome. The thing that I have done when I wanted to only show a part of my website’s content I created a new page and in static page settings I putted that page for the posts page. And then I made everything else private. I did not need to play with the coding php but your code is interesting I will copy it on my computer thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Change permalinks only for single posts’ is closed to new replies.