Jump to content

Recommended Posts

Posted

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.

 

 

Posted (edited)

I have django app folder at: public_html/example

 

I have used addon domain using this configuration:

 

New Domain Name

 

example.tk

 

Subdomain

example

 

No ftp ticked.

 

I got success.

 

it looks like this now:

 

Modify Addon Domain

Addon Domains

 

Document Root Subdomain Redirects to Action

home/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 by patents
Posted

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.

Posted (edited)

So, I can't have multiple django apps and multiple domains pointing to that apps.

Edited by patents
Posted

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.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...