PDA

View Full Version : Subdomain installation issues


svmajesie
07-21-2014, 09:57 AM
Okay, I'm just gonna compile this to one thread on its own as I'm driving myself bonkers trying to fix this.

I am wanting to install MAS to my subdomain, messengers.godspack.com. I am using Godaddy and paying for my hosting. Database is setup, install SEEMS to go fine.

Here's my config file:

<?php
//Mysidia Adoptables Site Configuration File

define('DBHOST', 'messengersadopt.db.12382978.hostedresource.com'); //DB Hostname
define('DBUSER', 'messengersadopt'); //DB Username
define('DBPASS', '****!'); //DB Password
define('DBNAME', 'messengersadopt'); //Your database name
define('DOMAIN', 'godspack.com'); //Your domain name (No http, www or . )
define('SCRIPTPATH', '/messengers'); //The folder you installed this script in
define('PREFIX', 'adopts_');
?>


This is what the site looks like when accessed through messengers.godspack.com: (image) (http://i.imgur.com/WwNVp7Z.jpg)
-Looks wrong but has correct URL
-I can't log in here, it just loops back to messengers.godspack.com/login and never actually logs in.

And this is what it looks like when accessed through godspack.com/messengers (which is where the directory for the subdomain is): (image) (http://i.imgur.com/MrFGdBN.jpg)
-Looks right but has wrong URL
-Can't log in here either, as it just redirects to a 404 page with the url of godspack.com/messengers/login

I was up until 3am trying to fix this but no combination of different specificed domains and paths seems to produce the correct results.

Missy Master
07-23-2014, 06:56 PM
I had a big problem with my .htaccess of all things, and it did the same thing.

Make a new file and add JUST this to it.

You want this in your main dir where the pet site is loaded. If you can name the file .htaccess its good, if not see if you can name it htaccess.

good luck!



RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{HTTP_HOST} ^www\.(.*) [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]
RewriteCond %{REQUEST_URI} !\.(js|css|gif|jpg|png|ico)$ [NC]
RewriteRule ^(.*)$ index.php [QSA,L]
RewriteRule ^get/([0-9]+).gif$ /click/siggy/$1 [L]

Hall of Famer
07-25-2014, 04:26 AM
Well if you have a subdomain, treat it as a domain. The scriptpath part should be left blank instead unless it's in a directory of your subdomain.