Forum on Subdomain
Quote from PeterMark on January 9, 2019, 7:20 pmIf I have the forum on a subdomain like community.domain.com and I want to get a forum started with a short close to the root url? For example on the root level so the forum is directly on the subdomain not a page.
The current setup I have is community.domain.com/welcome/forum this is too long
If I have the forum on a subdomain like community.domain.com and I want to get a forum started with a short close to the root url? For example on the root level so the forum is directly on the subdomain not a page.
The current setup I have is community.domain.com/welcome/forum this is too long
Quote from Asgaros on January 9, 2019, 7:39 pmHello @petermark
Have you set the forums-page as your front-page in the WordPress setting?
Also keep in mind that you cannot get rid of the page-slug which contains the forum-shortcode. The reason why the URL-structure of Asgaros Forum is working like this is a limitation in the rewrite-API of WordPress.
The first slug behind the page-name is always the view of the forum:
- my-site.com/forum/view-name
If Asgaros Forum would not contain the forums page-slug, the URL would look like this:
- my-site.com/view-name
This looks more short and nice but comes with a big problem: Every view-name there would now be used as a forum-view-name which means that normal pages are not accessible anymore. This means another page on your subdomain like this would not be accessible anymore:
- my-site.com/contact
Why? Because the forum now thinks you try to open a forum-view called contact which doesnt even exist – so it throws an error. To ensure that other pages are accessible and the forum view-detection is only called on the forum-page itself, this page-slug is necessary.
This does not happen because Asgaros Forum is bad-coded; instead it ensures that the forum does not have negative impact on other areas of your websites. I am aware of other extensions which dont use the additional forum-slug for shorter/nicer URLS, but they break the functionality I mentioned before: Certain other pages will not be accessible anymore.
Hello @petermark
Have you set the forums-page as your front-page in the WordPress setting?
Also keep in mind that you cannot get rid of the page-slug which contains the forum-shortcode. The reason why the URL-structure of Asgaros Forum is working like this is a limitation in the rewrite-API of WordPress.
The first slug behind the page-name is always the view of the forum:
- my-site.com/forum/view-name
If Asgaros Forum would not contain the forums page-slug, the URL would look like this:
- my-site.com/view-name
This looks more short and nice but comes with a big problem: Every view-name there would now be used as a forum-view-name which means that normal pages are not accessible anymore. This means another page on your subdomain like this would not be accessible anymore:
- my-site.com/contact
Why? Because the forum now thinks you try to open a forum-view called contact which doesnt even exist – so it throws an error. To ensure that other pages are accessible and the forum view-detection is only called on the forum-page itself, this page-slug is necessary.
This does not happen because Asgaros Forum is bad-coded; instead it ensures that the forum does not have negative impact on other areas of your websites. I am aware of other extensions which dont use the additional forum-slug for shorter/nicer URLS, but they break the functionality I mentioned before: Certain other pages will not be accessible anymore.