You are here:  » Correct Setting for $config_baseHREF

Support Forum



Correct Setting for $config_baseHREF

Submitted by ChrisNBC on Thu, 2013-02-21 15:35 in

Hi David,

I’m experiencing issues with a number of pages, I **think** I may have the wrong setting for the “$config_baseHREF” variable in my config file since when I select either “Site Home” or “Admin Home” links on the Admin home page, I get a 404 error. Additionally, when I set a password in the config_advanced.php a 404 error is displayed when I enter the correct password. When I remove the password from config, the admin index.php page displays fine (except for the ‘site home’ and ‘admin home’ link issue). I also get a 404 error when using the slow import method (when the screen refreshes).

In summary, the structure of my folders are:

PUBLIC_HTML/Sites/MySiteName/PT

The setting I have in config is: $config_baseHREF = "/pt/";

Would be grateful if you could confirm if the above setting sounds correct or if there could be another cause of all the 404 errors I’m getting.

Thanks in advance.
Regards
Chris

Submitted by support on Thu, 2013-02-21 18:51

Hi Chris,

Please could you let me know the URL of your installation (i'll remove before publishing your reply) and I'll check it out for you...

Linux file system paths are case sensitive - so given:

PUBLIC_HTML/Sites/MySiteName/PT

...it may be the case that it's simply:

$config_baseHREF = "/pt/";

...should be:

$config_baseHREF = "/PT/";

Cheers,
David.
--
PriceTapestry.com

Submitted by ChrisNBC on Thu, 2013-02-21 22:11

Thanks David,

The main site URL is: {link saved}

Thanks in advance.

Regards
Chris

Submitted by support on Fri, 2013-02-22 09:55

Hi Chris,

Thanks for the details. Your $config_baseHREF should be as follows:

  $config_baseHREF = "/Sites/HedgeCutterReviews/pt/";

For the plugin, under the External settings, (wp-admin > Settings > PriceTapestry.org) you can take the values directly from the Support Info page of the Price Tapestry /admin/ which are correct as displayed!

Cheers,
David.
--
PriceTapestry.com

Submitted by ChrisNBC on Fri, 2013-02-22 11:23

Hi David,

Thanks for your help. I applied the solution above and all is working fine now.

Regards
Chris