You are here:  » Sub directory install


Sub directory install

Submitted by augirl on Wed, 2015-12-23 12:35 in

I tried to install script in sub directory but every time I put in link to setup.php I get a 404 error with my wordpress site. I am certain done everything needed to do but I must be doing something wrong. Can you assist please.

Thank you

Submitted by support on Wed, 2015-12-23 13:15

Hi,

To double check the configuration, let's say you are installing the script in the sub-directory /shopping/, line 6 of config.php should be as follows;

  $config_baseHREF = "/shopping/";

And if using rewrite (search engine friendly URLs), line 5 of .htaccess

  RewriteBase /shopping/

And then to install; browse to

/shopping/setup.php

If that all looks good, but the above returns your WordPress site's 404 page, that would imply that the .htaccess file in your WordPress installation is missing the RewriteCond lines that check for an existing folder before passing the URL to WordPress. A typical WordPress .htaccess would look something like this:

RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

If the two RewriteCond lines are missing from the version on your installation, insert them immediately before the second RewriteRule, and that should be all it is...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com

Submitted by augirl on Thu, 2015-12-31 12:37

I followed instructions and got it installed. When login and try import it takes me to this page http://example.org/comparison/admin/comparison/admin/.
So It looks like I am still doing something wrong. Help Please.

Thank You
Annette

Submitted by support on Thu, 2015-12-31 14:03

Hello Annette,

That looks like the leading "/" is missing from the value of $config_baseHREF in config.php. Make sure that line 6 is as follows:

  $config_baseHREF = "/comparison/";

That should be all it is...

Hope this helps!

Cheers,
David.
--
PriceTapestry.com