Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Addons

Post Reply
 
Thread Tools
  #1  
Old 01-26-2009, 08:15 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
mod_rewrite & promote

is ther any way to make promote addon work with mod rewrite ?

here is my rewrites rules :

Code:
  7 RewriteEngine on
  8 RewriteBase /
  9 RewriteRule ^(about|downloads)/?$ index.php?x=$1
 10 RewriteRule ^browse/?$ index.php?x=browse
 11 RewriteRule ^browse/([1-9][0-9]*)/?$ index.php?x=browse&pagenum=$1
 12 RewriteRule ^browse/category/([1-9][0-9]*)/?$ index.php?x=browse&category=$1
 13 RewriteRule ^browse/category/([1-9][0-9]*)/([1-9][0-9]*)/?$ index.php?x=browse&category=$1&pagenum=$2
 14 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
 15 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
 16 RewriteRule ^browse/tag/([^/]+)/?$ index.php?x=browse&tag=$1
 17 RewriteRule ^browse/tag/([^/]+)/([1-9][0-9]*)/?$ index.php?x=browse&tag=$1&pagenum=$2
 18 RewriteRule ^comment/submit$ index.php?x=save_comment
 19 RewriteRule ^comment/([0-9]+)$ index.php?popup=comment&showimage=$1
 20 RewriteRule ^(p|photo)/([0-9]+)$ index.php?showimage=$2
 21 RewriteRule ^(p|photo)/([0-9]+)/rating/([1-5])$ index.php?showimage=$2&rating=$3
 22 RewriteRule ^t/latest/?$ index.php?showthumb=latest&thumbtag=image
 23 RewriteRule ^feeds/(rss|atom).xml$ index.php?x=$1
Reply With Quote
  #2  
Old 01-27-2009, 02:21 AM
fredxeric's Avatar
fredxeric Offline
pixelpost guru
 
Join Date: Sep 2006
Location: Montréal, Québec, Canada
Posts: 407
Send a message via AIM to fredxeric Send a message via MSN to fredxeric
I will fix this tomorrow for you...
Reply With Quote
  #3  
Old 01-27-2009, 07:55 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
whoohoo! you (probably) rocks !
Reply With Quote
  #4  
Old 01-31-2009, 10:47 AM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
any news ?
Reply With Quote
  #5  
Old 02-04-2009, 10:13 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
hum.. nobody about mod_rewrite & promote ?
rewrites rules give headhache to most people, but i'm quite sure i'm not the first to face that problem. would be nice if somebody can release a solution.
Reply With Quote
  #6  
Old 02-05-2009, 06:25 AM
jaywilliams's Avatar
jaywilliams+ Offline
Team Pixelpost
 
Join Date: Sep 2005
Posts: 1,003
Send a message via AIM to jaywilliams Send a message via MSN to jaywilliams Send a message via Yahoo to jaywilliams Send a message via Skype™ to jaywilliams
This may seems like a stupid question, but in your .htaccess file where you have those mod_rewrite code, you don't have those numbers at the beginning, do you?

It should look like this:
Code:
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
__________________
Jay Williams | A Different View
Reply With Quote
  #7  
Old 02-07-2009, 03:46 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
of course the numbers are not in the .htaccess
they only are in my text editor (vim) from wich i copy and paste it.
Reply With Quote
  #8  
Old 02-11-2009, 10:07 PM
effraie Offline
forum loafer
 
Join Date: Jan 2008
Posts: 14
hum, nobody here ?
Reply With Quote
  #9  
Old 05-13-2009, 11:13 PM
piclab Offline
forum loafer
 
Join Date: May 2009
Posts: 6
I'm with you Effraie, it's a big lack on our favorite photoblog…
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 07:15 PM.

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