- Joined
- Apr 26, 2005
- Posts
- 7,414
- Reaction score
- 150
Guys
I'm spending the afternoon integrating Price Tapestry into my own set of template files.
On this search page the header and main menu are includes from my own template as follows:
Now I want to add the same things to the merchants page. Now, I've added exactly the same code, but the images are broken. I think that this is because the merchants page is being displayed using the ReWrite engine, with the following rules:
Now, I am of course just about to read up on the ReWrite engine, but can one of you clever people tell me what to do before I work it out? Currently images are getting broken by the insertion of a merchant folder, i.e.
which should be:
Any ideas?
Thanks
I'm spending the afternoon integrating Price Tapestry into my own set of template files.
On this search page the header and main menu are includes from my own template as follows:
Code:
include("inc-title.php");
include("inc-menu-main.php");
Now I want to add the same things to the merchants page. Now, I've added exactly the same code, but the images are broken. I think that this is because the merchants page is being displayed using the ReWrite engine, with the following rules:
Code:
RewriteRule ^merchant/$ merchants.php
RewriteRule ^merchant/(.*)/$ search.php?q=merchant:$1:&rewrite=1%{QUERY_STRING} [L]
RewriteRule ^merchant/(.*)/(.*).html$ search.php?q=merchant:$1:&page=$2&rewrite=1%{QUERY_STRING} [L]
Now, I am of course just about to read up on the ReWrite engine, but can one of you clever people tell me what to do before I work it out? Currently images are getting broken by the insertion of a merchant folder, i.e.
Code:
http://www.kingsizebeds.me.uk/merchant/images/logo-260x60.jpg
which should be:
Code:
http://www.kingsizebeds.me.uk/images/logo-260x60.jpg
Any ideas?
Thanks