PDA

View Full Version : Install to a subdomain?


GoldMiner
01-25-2014, 01:35 PM
Hey there, guys! New here, and to Mysidia.


My issue right now is installing the script to a sub domain.

It DOES install. I install it to pets.mydomain.com and it does the installation correctly. My database is updated with the login info of my new user and everything is all good and well, but when I log in it seems to instantly log me out. I type in my user/pass and it logs in successfully and tells me that I can go and edit my info, but I am not actually logged in at all.


Any help is appreciated, thanks!




NOTE: I set my web address (without http:// or www.) to pets.mydomain.com.

If I set it to mydomain.com/pets (which is the directory the files for the sub domain are stored in) then when I go to pets.mydomain.com it spits out an error, which I don't have in front of me right now.


-GoldMiner

GoldMiner
01-25-2014, 01:50 PM
My only other idea is to make pets.mydomain.com redirect over into mydomain.com/pets to avoid the latter issue and see if that sorts out the first one.

Hall of Famer
01-25-2014, 03:13 PM
Actually I believe the problem with subdomains has been resolved with the removal of www. from the standard url. You still need http://, but this shouldnt be a problem.

GoldMiner
01-25-2014, 03:17 PM
Ahh okay, let me take a look and see if that works out! :) Thanks for the reply.

GoldMiner
01-25-2014, 03:32 PM
Tried it out, still has the issue of not letting me log in. If I install the script to the lower domain (mydomain.com/pets) it works out perfectly.

Hall of Famer
01-27-2014, 02:07 AM
umm thats strange, I will look into your issue further, this is a chance that you may need to add one line to .htaccess file to bypass this issue. A trick you can play is always to have your pets.mydomain.com as a parked domain for directory mydomain.com/pets. Not sure if this actually works with mod_rewrite already running.

krazykat1980
05-07-2014, 01:50 PM
Sorry to necropost... But....

Could someone please update/complete this - "chance that you may need to add one line to .htaccess file to bypass this". My site is a Secondary domain instead of a subdomain, but the answer to this might be the clue I need to solve at least part of my problem...

Thanks!

svmajesie
07-21-2014, 09:48 AM
Sorry to necropost... But....

Could someone please update/complete this - "chance that you may need to add one line to .htaccess file to bypass this". My site is a Secondary domain instead of a subdomain, but the answer to this might be the clue I need to solve at least part of my problem...

Thanks!

Agreed! Working with a subdomain myself on my own paid hosting and running into issues like crazy.