patents Posted November 9, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
Krydos Posted November 9, 2017 Share Posted November 9, 2017 Create example.tk as an addon domain (is what I think you're describing.) 1 Quote Link to comment Share on other sites More sharing options...
patents Posted November 9, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Krydos Posted November 9, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
patents Posted November 10, 2017 Author Share 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 Quote Link to comment Share on other sites More sharing options...
Krydos Posted November 10, 2017 Share 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. Quote Link to comment Share on other sites More sharing options...
patents Posted November 10, 2017 Author Share Posted November 10, 2017 got it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.