ticktackk / RouteOnSubdomainForXF2

MIT License
2 stars 0 forks source link

How to create custom subdomains #5

Open doublespaces opened 5 years ago

doublespaces commented 5 years ago

I saw a number of subdomains listed but they are all useless. How do I add my own subdomain?

ticktackk commented 5 years ago

Like the add-on title says only routes can be put on a subdomain. If you want to put a forum on subdomain, you must create a route filter for that forum; should look something like this: image and make sure the forums route on subdomain is enabled.

doublespaces commented 5 years ago

and make sure the forums route on subdomain is enabled.

You mean this? image

When I click "Forums" in the navigation, I get this: image

doublespaces commented 5 years ago

image

doublespaces commented 5 years ago

So I can view a particular route filter via a subdomain. Is there any additional functionality this addon brings besides setting index page routes for sub domains?

For example I am here: https://bmw.electrichorizon.com

If I click a link, on the site such as a thread: image

It takes me to https://electrichorizon.com and I lose the subdomain and my normal board URL includes www.

XC Multi-Site allows the full navigation of the site from that subdomain and has a filter for making some nodes hidden. As an example, how do I hide the Chevy node when at the BMW subdomain? image

ticktackk commented 5 years ago

So I can view a particular route filter via a subdomain. Is there any additional functionality this addon brings besides setting index page routes for sub domains?

It moves the route to a subdomain and not just set them as index.

If I click a link, on the site such as a thread: It takes me to https://electrichorizon.com and I lose the subdomain and my normal board URL includes www.

Redirecting to the non-www seems to be caused by a bug. Redirecting to electrichorizon.com /threads/fdsa.1/ is expected because the route threads is not enabled to be shown on a subdomain.

XC Multi-Site allows the full navigation of the site from that subdomain and has a filter for making some nodes hidden. As an example, how do I hide the Chevy node when at the BMW subdomain?

This is not an multi-site add-on but it has the core functionality that is needed to be one but then again this add-on is only made to put route on a subdomain.

ticktackk commented 5 years ago

@doublespaces Could you upload a screenshot of the routes that are enabled?

doublespaces commented 5 years ago

image image

doublespaces commented 4 years ago

This is not an multi-site add-on but it has the core functionality that is needed to be one but then again this add-on is only made to put route on a subdomain.

So would this addon allow me to delete all those symlinks that I have which point to the forum files in public_html? I'm just trying to see what you're aiming for here and how I can utilize it.

I don't actually have any issues with the symlinks, but they are kind of annoying to create.

ticktackk commented 4 years ago

I'm not sure how symlinks would interact with this add-on so I cannot comment on it.

doublespaces commented 4 years ago

I'm not sure how symlinks would interact with this add-on so I cannot comment on it.

Well, what I do currently is have a subdomain created with the control panel, so the subdomain changes are at the apache level. Then I go in and delete the subdomain's directory, and replace it with a symlink that points to the forum's root so all subdomains point to the same forum files.

This is how xencentral allows all subdomains to work with the same files.

If this addon can do something similar then I could see how it is useful to me, otherwise I'm not able to see much value unless you continue to build this out to have multi-site like features.

ticktackk commented 4 years ago

Well, what I do currently is have a subdomain created with the control panel, so the subdomain changes are at the apache level. Then I go in and delete the subdomain's directory, and replace it with a symlink that points to the forum's root so all subdomains point to the same forum files.

This is how xencentral allows all subdomains to work with the same files.

Seems like a lot of work.

If this addon can do something similar then I could see how it is useful to me, otherwise I'm not able to see much value unless you continue to build this out to have multi-site like features.

Currently I have no plans to add anymore features to this add-on. If I ever decide to make an multi-site add-on, it is probably going to be paid add-on.