View Single Post
  #15  
Old 04-09-2009, 03:39 AM
thomast Offline
forum loafer
 
Join Date: Dec 2007
Posts: 2
Hi Joe,

Firstly, a BIG Thank You for sharing this wonderful template. Its simply wonderful.

I managed to get everything up and running fine. Now I'm trying to add a hyperlink on the template to link to my blog, which is not in the root install folder off my pixelpost install, and the link is behaving weirdly.

Below is my .htaccess: (Note line 5, which I added for the hyperlink)

RewriteEngine on
RewriteBase /myphotos
RewriteRule ^(about|downloads)/?$ index.php?x=$1
RewriteRule ^browse/?$ index.php?x=browse
RewriteRule ^blog/?$ ../blog
RewriteRule ^browse/([1-9][0-9]*)/?$ index.php?x=browse&pagenum=$1
RewriteRule ^browse/category/([1-9][0-9]*)/?$ index.php?x=browse&category=$1
RewriteRule ^browse/category/([1-9][0-9]*)/([1-9][0-9]*)/?$ index.php?x=browse&category=$1&pagenum=$2
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4
RewriteRule ^browse/archive/(19|20)([0-9][0-9])[-](0[1-9]|1[012])/monthname/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&archivedate=$1$2-$3&monthname=$4&pagenum=$5
RewriteRule ^browse/tag/([^/]+)/?$ index.php?x=browse&tag=$1
RewriteRule ^browse/tag/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&tag=$1&pagenum=$2
RewriteRule ^comment/submit$ index.php?x=save_comment
RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
RewriteRule ^(p|photo)/([0-9]+)$ index.php?showimage=$2
RewriteRule ^(p|photo)/([0-9]+)/rating/([1-5])$ index.php?showimage=$2&rating=$3
RewriteRule ^t/latest/?$ index.php?showthumb=latest&thumbtag=image
RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1

This works fine on the image_template, and when I hover over the hyperlink, the status bar on my safari shows "pixellogue.com/blog" which is correct.

However, on the browse_template, it shows "pixellogue.com/myphotos/blog", which is wrong. When I click on the link on this page, it first goes to pixellogue.com/myphotos/blog, and then a second later gets redirected to the correct address.

How can I solve this issue? Please help.

And once again, thank you.

Thom
Reply With Quote