url alias domain problem

Url alias domain problem, a forum discussion on Jojo CMS. Join us for more discussions on Url alias domain problem on our General Discussion forum.

Back to Forum Index : Back to General Discussion   RSS
synfield

19 Jul 2008
Posts: 43

The development server on which I'm hosting my jojo cms is accessed on the intranet by it's real domain name e.g. http://realdomain.ac.nz:8080/ and accessed externally by an alias http://aliasdomain.ac.nz:8080/

When I access the site externally I get a custom jojo generated 404 - pg not found with links to home etc which have the realdomain href's .

Can I set up .htaccess to translate the alias back to the real domain name, what is the syntax and will this work with mod rewrite of friendly url mappings?

Thanks.

Regards
Harvey

Core Developer

Harvey

19 Jul 2008
Posts: 327

The issue is possibly the SITEURL option - stored in the 'option' table in the database.

Jojo is designed to do a 301 redirect from development URLs to the real URL - this is to prevent potential duplicate content problems which can be big problems.

Getting a 404 isn't what I would expect though - I would expect it to 301 to the local domain, then your browser would generate a 'server not found' error.

But, first thing to try is to edit the 'siteurl' option and see if that changes anything.

I notice with your example you are showing 2 different root domains - this makes things a bit easier. If it was something like http://domain.com and http://dev.com/temporary/ (note the subfolder) then you would also need to edit the RewriteBase directive in .htaccess.

I'd be interested to know if changing siteurl solves your issue - if it does, you will need to change this variable depending where you are accessing the server from - currently there is no way to disable the automatic redirect behaviour, though it's something I have been wanting to implement.
synfield

22 Jul 2008
Posts: 43

Thanks. problem solved.
Back to Forum Index : Back to General Discussion   RSS
You must be logged in to post a reply



You need to Register or Log In before posting on these forums.