HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Short URLs/multisite/hosting situation

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#92951 (In Topic #18616)
Avatar

Honoured member

Hello. I've been fighting with this for days, can't figure it out. I got all my sites moved to a new hosting situation (godaddy). I got the main one working 100%, upgraded to the latest version, and everything. Short URLs works fine at www.dimestoreproductions.com

my main satellite site, www.selfpubmag.com - is also now working and upgraded. The only part that is not, is the short URLs. It will display the correct short urls, but the pages come up 404 not found. I turned off the short urls in the config options for now so that I can work on a new template and getting things back in order. 

But I would really like to use the short URLs...I am just wondering if how godaddy makes you set up additional domains is the problem. You have to, in the file structure of your main site, add a folder and then point your domain name to that folder. I am using the recommended httaccess file. I tried adding:
# php_value open_basedir "/home/content/92/10010992/html/magazine/"

-un-commenting that...but it makes the site go 500 server error...and I tried a number of variations on that.

I was worried the setup would cause problems with database connection between sites, because it does not use localhost - it gives you a location for each database. but that is not causing any problems that I can find in the member/forum connection.

Anyway, if anyone can help with the short URL situation in this configuration, I think it would be useful to not just me, but anyone who ends up with a hosting company that does things this way.
Back to the top
 
Posted
Rating:
#93018
Avatar

Honoured member

I am working to figure this out, still with no luck. could the problem be in here:

# Set ocPortal to handle 404 errors. Assume ocPortal is in the root
<FilesMatch !"\.(jpg|jpeg|gif|png|ico)$">
ErrorDocument 404 /index.php?page=404
</FilesMatch>

as it is assuming the root, and even though the URL is treating the folder as the root, it is not the root of the file set up…what part of that exactly would I be able to change to tell it that?
Back to the top
 
Posted
Rating:
#93019
Avatar

Try RewriteBase /magazine.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#93020
Avatar

Honoured member

where in the httaccess should that go…as I don't see RewriteBase anywhere….I am thinking you mean either right before or right after where rewriteengine on is….
Back to the top
 
Posted
Rating:
#93021
Avatar

Honoured member

I can confirm putting it right after does not change anything in the described behavior.
Back to the top
 
Posted
Rating:
#93022
Avatar

I'm not sure the order matters, but I'm put after rewrite engine on.

Also try RewriteBase /home/content/92/10010992/html/magazine

If none of this works, the web host might know.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#93023
Avatar

Honoured member

Ok, tried both and a couple other spots…no effect. I do have a request for help in from Godaddy so hopefully they can provide some insight on making it work, I'll report why I learn.
Back to the top
 
Posted
Rating:
#93028
Avatar

Honoured member

Interestingly enough….the solution was adding just:

RewriteBase /

that's it. the rest of the .htaccess completely default. So I'm good to go, thanks for looking at it and getting me on the right track of experimenting. Godaddy came back and told me simply, that each should act as it's own directory, that's when I tried the above just to see. boom, worked.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: