Pixelpost Forum

Pixelpost Forum (http://www.pixelpost.org/forum/index.php)
-   Addons (http://www.pixelpost.org/forum/forumdisplay.php?f=13)
-   -   mod_rewrite & promote (http://www.pixelpost.org/forum/showthread.php?t=10129)

effraie 01-26-2009 08:15 PM

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


fredxeric 01-27-2009 02:21 AM

I will fix this tomorrow for you...

effraie 01-27-2009 07:55 PM

whoohoo! you (probably) rocks !

effraie 01-31-2009 10:47 AM

any news ?

effraie 02-04-2009 10:13 PM

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.

jaywilliams 02-05-2009 06:25 AM

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


effraie 02-07-2009 03:46 PM

of course the numbers are not in the .htaccess ;)
they only are in my text editor (vim) from wich i copy and paste it.

effraie 02-11-2009 10:07 PM

hum, nobody here ?

piclab 05-13-2009 11:13 PM

I'm with you Effraie, it's a big lack on our favorite photoblog… :(


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

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.