You are here:  » .htaccess and jump

Support Forum



.htaccess and jump

Submitted by philh on Fri, 2008-03-21 22:00 in

Hi David,

Two problems-

I have finished editing one copy of PT (example.com/dvds) and am now working on another copy (example.com/books). I'm simply copying the design from dvds to books and it all looks good except:
First of all - the jump doesn't work on the books installation - have I forgot something to make it work?
Secondly, when I enable rewrite on the books installation it breaks. I get the following error

Warning: main(includes/common.php) [function.main]: failed to open stream: No such file or directory in /home/sites/hanlor.co.uk/public_html/products.php on line 2

on everything except the search results.

Thanks in advance

Phil

Submitted by support on Sat, 2008-03-22 16:42

Hi Phil,

There are 2 places where the path to the installation must be set - for example in config.php:

$config_baseHREF = "/dvds/";

...and .htaccess

RewriteBase /dvds/

Check that both of these are in place; confirm that the /includes/ directory has copied across (as that is where it is looking for common.php) and if you still have problems drop me an email with a link to the site showing the problem and i'll check it out for you!

Cheers,
David.

Submitted by philh on Sat, 2008-03-22 17:33

Ah - I had forgotten to change the RewriteBase - works now thank you!

How about the jump issue; it simply loads a blank page e.g:

http://www.hanlor.co.uk/books-magazines/product/Harry-Potter-and-the-Order-of-the-Phoenix.html

I assume I've forgotten something here too...

Thank you!

Submitted by support on Sat, 2008-03-22 17:53

Hi Phil,

The link is generated by the tapestry_buyURL() function in includes/tapestry.php. It normally references $config_baseHREF; but check that this hasn't been modified to include the direct link. At the moment, it is pointing to dvd-film instead of books-magazines...

Cheers,
David.

Submitted by philh on Sat, 2008-03-22 18:00

That fixed it - I always overlook the simple things... cheers David!