patents Posted November 9, 2017 Posted November 9, 2017 I want to add domain (free one like .tk) that will point out to one of my domain.for example. I register example.tk and would like it to point out to patents.heliohost.org/example/ but do not update the visitor's url. This way the entire relatie urls also points to exmaple.com directly. for eg. If I point example.tk/practical it should point to patents.heliohost.org/example/practical. I tried url redirect but it takes me to example.tk/example/practical. I don't want to play with all the things in cpannel that I don't understand which can break the site. Someone please point out the right way.
Krydos Posted November 9, 2017 Posted November 9, 2017 Create example.tk as an addon domain (is what I think you're describing.) 1
patents Posted November 9, 2017 Author Posted November 9, 2017 (edited) I have django app folder at: public_html/example I have used addon domain using this configuration: New Domain Name example.tk Subdomainexample No ftp ticked. I got success. it looks like this now: Modify Addon Domain Addon Domains Document Root Subdomain Redirects to Actionhome/public_html/example example not redirected Remove Now visiting example.tk gives me 500: internal server Error. visiting: http://example.patents.heliohost.org/ is also giving same error. Please note example is just an example. I am hosting django app which works well. Edited November 9, 2017 by patents
Krydos Posted November 9, 2017 Posted November 9, 2017 You'll need to pick one domain or the other for django to work. The way the .htaccess needs to be written won't work for both at the same time.
patents Posted November 10, 2017 Author Posted November 10, 2017 (edited) So, I can't have multiple django apps and multiple domains pointing to that apps. Edited November 10, 2017 by patents
Krydos Posted November 10, 2017 Posted November 10, 2017 You can have as many django apps as you want. You can have as many domains as you want. You can even have as many domains as you want pointing at the same django app. The paths just have to be the same.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now