Notifications
Clear all

[Closed] URL on posts

8 Posts
3 Users
0 Reactions
722 Views
Posts: 8
Topic starter
(@danigg)
Active Member
Joined: 1 year ago

Hello, I'm currently making a private forum for a client and one thing I struggle with is the URL's for posts. When entering af post it will add the #post-30 for example and then scroll down on the post page.

So basically the structure would be websitename / forumname / forum  / postname / postid

See attached image 1

What I would like, is get rid of the postid part, meaning in this example the #post-30, when users enter the post. Having the URL without the ID solves the problem, but i'm not sure how I can remove the ID for every single path.

Anyone knows how to do this, if it's even possible? 

Enjoying the plugin by the way 🙂

Cheers,

Daniel

7 Replies
dimalifragis
Posts: 2611
(@dimalifragis)
Famed Member
Joined: 5 years ago

btw: Please read

https://wpforo.com/community/faq/wpforo-and-cache-plugins

and REMOVE rocket from wpForo.

BlackRaz
Posts: 404
Admin
(@blackraz)
Contributor
Joined: 8 years ago

Hi @danigg

If the problem persists even after excluding wpForo pages from the cache plugin settings, you can change the URL structure from slugs to post IDs by going to the dashboard, then navigating to wpForo > Settings > Board Settings > URL Structure.

Posts: 8
Topic starter
(@danigg)
Active Member
Joined: 1 year ago

I tried adding every URL to WP Rocket as suggested in the article. Also I tried changing the URL structure as suggested. - It still ads the #postid tag on every post created.

When I create a new post, it doesn't immediatly have the #tag on it, but when I navigate to the post the link that the post has, have the #postid on it. 

4 Replies
dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@danigg WHY don't you check the HTML cource view from your browser to SEE at the END if Caching is Active or NOT?

because it still IS active ....

(@danigg)
Joined: 1 year ago

Active Member
Posts: 8

@dimalifragis not really sure what more I can do other than put in the URL's as the article you linked suggested. But THANKS

dimalifragis
(@dimalifragis)
Joined: 5 years ago

Famed Member
Posts: 2611

@danigg Is this what you are excluding:

/community/
/participant/
/community/(.*)
/participant/(.*)
(@danigg)
Joined: 1 year ago

Active Member
Posts: 8

@dimalifragis Yes - and also excluding the URL's like /intranet/(.*)/ since that's the URL that's used - not sure if needed.

Before I asked here, I already had those 4 excluded under advanced rules -> never cache URL(s)

I'm starting to think this isn't even an issue, but it's intentional. It's just annoying that the #postid gets put on the URL as the image I attached shows