Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > SUPPORT / INFORMATION > Pixelpost Help

Post Reply
 
Thread Tools
  #11  
Old 04-01-2009, 08:36 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
According to http://help.godaddy.com/article/899, GoDaddy supports mod_rewrite.. The lines in your .htaccess, are they wrapping in TextEdit? Because each rule should be on one line by itself, in case something got messed up when copy-and-pasting??

You could also try just the top 2 lines in .htaccess only (as a test)

Code:
RewriteEngine On
RewriteBase /Portfolio
and see if you get any internal errors. if not, then you messed up copying one of the rules over. It might be easiest to copy them from the README.txt file included in the download ZIP file.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #12  
Old 04-01-2009, 08:46 PM
MikeyTampa Offline
forum loafer
 
Join Date: Apr 2009
Posts: 6
Quote:
Originally Posted by robackja View Post
According to http://help.godaddy.com/article/899, GoDaddy supports mod_rewrite.. The lines in your .htaccess, are they wrapping in TextEdit? Because each rule should be on one line by itself, in case something got messed up when copy-and-pasting??

You could also try just the top 2 lines in .htaccess only (as a test)

Code:
RewriteEngine On
RewriteBase /Portfolio
and see if you get any internal errors. if not, then you messed up copying one of the rules over. It might be easiest to copy them from the README.txt file included in the download ZIP file.
EUREKA! Oh Roback you are the Bees Knees
I was using Mac's TextEdit which I HATE! So I went over to my PC and used good old fashion Wordpad and saved it that way and it worked.
Reply With Quote
  #13  
Old 04-01-2009, 08:48 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Well there are plenty of free editors for mac which are leagues better than TextEdit. TextWrangler is free and plays nice with Fetch. I use TextMate but it costs money.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #14  
Old 04-01-2009, 08:49 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
and glad to see you got it working
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #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
  #16  
Old 04-10-2009, 07:05 PM
robackja's Avatar
robackja Offline
pp veteran
 
Join Date: Sep 2008
Location: Tucson, Arizona
Posts: 50
Quote:
Originally Posted by thomast View Post
...
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
I am not sure why are trying to make an external link through mod_rewrite rules. Its not necessary. Remove that rule and just use a straight link like
HTML Code:
<a href="http://pixellogue.com/blog/">Blog</a>
The mod_rewrite rules are to turn the pixelpost specific URLs into search engine friendly URLs. Your "blog" is external. No need to use mod_rewrite for your blog link.
__________________
The World in 35mm | joeroback.com | roback.cc
Reply With Quote
  #17  
Old 04-28-2009, 11:30 AM
sepp Offline
forum loafer
 
Join Date: May 2006
Posts: 9
I have another problem. The rewrite of 35mm with googlesitemap addon.

My old blog used the se.nsuo.us cleanurls addon. With the 35mm template the clean-urls are different as it looks like the rules are different. As a result of that the sitemap.xml isn't correct anymore. So what doing?

Turn of the rules of 35mm and generate clean-urls with se.nsuo.us addon? And if yes... how to do that ?

Second way would be to generate clean urls and change the sitemap addon that its working with 35. But I don't like this way as all the urls have to be changed again. Old links to pictures of my blog would be incorrect.

Any Idea?

Thanks
SePp
Reply With Quote
  #18  
Old 04-28-2009, 12:25 PM
sepp Offline
forum loafer
 
Join Date: May 2006
Posts: 9
Google Sitemap

Hi
I changed the google sitemap addon like you see below and it is working. (At least for all images and the about page.)
Problem is that I want my old links back :-). I mean the links from se.nsuo.us cleanurls tool. Do you have any Idea how to realize.

And I'm not sure this will work all the time. So no gurantee.

PHP Code:
$query mysql_query("SELECT id,lastmod,headline FROM ".$pixelpost_db_prefix."pixelpost WHERE (datetime<='$cdate') ORDER BY datetime desc ");

    while(list(
$id,$datetime,$headline) = mysql_fetch_row($query))
    {
        
$datetime strtotime($datetime);
        
$datetime =date("Y-m-d",$datetime);
        
$output .= "
        <url>
        <loc>"
.$cfgrow['siteurl']."p/$id</loc>
        <lastmod>$datetime</lastmod>
        </url>
        "
;
    }
     
$output .= "<url>
        <loc>"
.$cfgrow['siteurl']."about</loc>
        </url>    
    </urlset>"
;
    
header("Content-type:application/xml");
    echo 
$mapheader.$output;
    exit;

Reply With Quote
  #19  
Old 05-24-2009, 04:59 PM
digital-alchemy Offline
forum loafer
 
Join Date: Jan 2006
Posts: 16
Hi,
I have a problem similar with MikeyTampa
at first it always giving me Internal Server Error (yes, I'm using Mac's TextEdit) and then I downloaded TextWrangler and still giving me no luck.
My last try is using "file manager" from cpanel. There is a progress, I can access admin pages and also my photoblog, but i still have a problem with "BROWSE, DOWNLOAD and ABOUT". Do I missed something?

here is my .htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteRule ^(about|downloads)/?$ index.php?x=$1
RewriteRule ^browse/?$ index.php?x=browse
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
</IfModule>

(if i didn't use the wrapper, it didn't work)
and my site is in http://gunawanharrison.com/

thank you
Reply With Quote
  #20  
Old 05-25-2009, 04:16 AM
digital-alchemy Offline
forum loafer
 
Join Date: Jan 2006
Posts: 16
Never mind .....
everything is OK now

thank you for sharing this great template

/a
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 12:08 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs