You are here:  » Migration to a new domain (from /testarea to root)


Migration to a new domain (from /testarea to root)

Submitted by EIF Media on Sun, 2013-12-29 22:13 in

Hello all,

After finally being happy with my site design and function, as setup at mydomain/testarea I have migrated it to the root folder. I've run the installation and renewed a couple of the xml feeds and although the site looks fine, my searches aren't returning any results.

I'm sure I must be missing something quite obvious here, but could do with a little guidance if anyone has any ideas.

Thanks,
Dan

Submitted by support on Mon, 2013-12-30 13:25

Hello Dan,

Assuming that /setup.php shows all tests as "PASS", the considerations for moving a site up one level to the root folder would be;

Line 6 of config.php:

  $config_baseHREF = "/";

And if using clean URLs, line 5 of .htaccess:

RewriteBase /

If that all looks good, can you confirm whether the Merchant A-Z index is working correctly (browse to /merchant/ ) but then clicking a merchant name gives no results; or are you only getting no results if entering a keyword search?

Cheers,
David.
--
PriceTapestry.com

Submitted by EIF Media on Mon, 2013-12-30 15:06

Hi David,

I amended all references to /testarea I could find, including in config.php, although line 5 of .htaccess is 'RewriteEngine on' - I don't have a command line for Rewritebase.

I've created a new database and reinstalled which causes search results to now be returned, however I am getting a white 'Not Found
The requested document was not found on this server.' screen when I click on product/more information links, merchant and categories.

Submitted by support on Tue, 2013-12-31 11:12

Hi,

"Not Found" when clicking on the A-Z or product pages indicates that you have search engine friendly URLs enabled with $config_useRewrite = TRUE in config.php but have not yet created the corresponding .htaccess file which needs to be made from a copy of htaccess.txt in the distribution. For a top level installation this file doesn't require any changes - line 6 can be left as the default;

RewriteBase /

The easiest way to create the file is normally using your FTP program. In the remote window, right-click on htaccess.txt and use the Rename function to change to .htaccess - that should be all it is...

Cheers,
David.
--
PriceTapestry.com

Submitted by EIF Media on Tue, 2013-12-31 15:11

Superb,

Thanks David, all sorted now and ready to launch!

Daniel Crompton
EIF Media / Tapespotter