Results 1 to 15 of 15

Does anyone have Photopost rewrites

This is a discussion on Does anyone have Photopost rewrites within the General Discussion forums, part of the vBSEO SEO Plugin category; Does anyone have rewrites for Photopost 7 and vBulletin 4 with vBSEO 3.5? I searched for this on the forum ...

  1. #1
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times

    Does anyone have Photopost rewrites

    Does anyone have rewrites for Photopost 7 and vBulletin 4 with vBSEO 3.5?

    I searched for this on the forum here, but couldnt find any solid answers...

    Thanks,

    Jesh

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I don't believe these exist yet.

  3. #3
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times
    Quote Originally Posted by Brian Cummiskey View Post
    I don't believe these exist yet.
    Chuck supplied these rewrites, but when I use them and turn on 'SEO' in his software it doesn't work, any idea if vBSEO is causing any conflicts? I turned it off for a test and it still didn't work. Figured I'd post here since there are rewrite experts on the board.

    Options +FollowSymLinks
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [L]
    RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showphoto.php?photo=$2 [L]
    RewriteRule ^(.*)/p([0-9]+).html$ showphoto.php?photo=$2 [L]
    RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?cat=$1&page=$3 [L]
    RewriteRule ^g([0-9]+)-(.*).html$ showgallery.php?cat=$1 [L]
    RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&page=$3 [L]
    RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [L]
    RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&protype=$3 [L]
    RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [L]
    RewriteRule ^board.html$ board.php [L]
    RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [L]

    RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?ppuser=$1&page=$3 [L]
    RewriteRule ^u([0-9]+)-(.*).html$ showgallery.php?ppuser=$1 [L]
    RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [L]
    RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [L]

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    RewriteEngine On is missing

    Make sure thats part of the file.

  5. #5
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times
    Yeah that is in there too, still doesn't work :( I'm using ISAPI, my rewrite httpd.conf is looking messy. Not sure what the problem is :(

    # Helicon ISAPI_Rewrite configuration file
    # Version 3.1.0.68
    # Helicon ISAPI_Rewrite configuration file
    # Version 3.1.0.64
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)

    RewriteBase /
    RewriteCond %{HTTP_HOST} ^music-forum\.com
    RewriteRule (.*) http://www.music-forum.com/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} www\.music-forum\.com
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{HTTP_HOST} www\.music-forum\.com
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    RewriteCond %{HTTP_HOST} www\.music-forum\.com
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    # us coin
    RewriteCond %{HTTP_HOST} ^uscoininfo\.com
    RewriteRule (.*) http://www.uscoininfo.com/$1 [L,R=301]
    # redirect coinforums.com
    RewriteCond %{HTTP_HOST} ^(www\.)?coinforums\.com
    # RewriteCond %{QUERY_STRING} .
    RewriteRule (.*) U.S. Coin Info - Coin Collecting Forums [R=301,L]
    # Test for vbSEO for USCOININFO.COM
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    # TEST FOR GALLERY
    Options +FollowSymLinks

    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d

    RewriteRule ^(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [L]
    RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showphoto.php?photo=$2 [L]
    RewriteRule ^(.*)/p([0-9]+).html$ showphoto.php?photo=$2 [L]
    RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?cat=$1&page=$3 [L]
    RewriteRule ^g([0-9]+)-(.*).html$ showgallery.php?cat=$1 [L]

    RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&page=$3 [L]
    RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [L]

    RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&protype=$3 [L]
    RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [L]

    RewriteRule ^board.html$ board.php [L]
    RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [L]

    RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?ppuser=$1&page=$3 [L]
    RewriteRule ^u([0-9]+)-(.*).html$ showgallery.php?ppuser=$1 [L]

    RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [L]
    RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [L]

  6. #6
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    anything after vbseo.php call in the last rule simply will never execute.


    Try using something like this (note, untested and i don't have anything to test it with).

    Code:
    # Helicon ISAPI_Rewrite configuration file
    # Version 3.1.0.68
    # Helicon ISAPI_Rewrite configuration file
    # Version 3.1.0.64
    # Comment the following line (add '#' at the beginning)
    # to disable mod_rewrite functions.
    # Please note: you still need to disable the hack in
    # the vBSEO control panel to stop url rewrites.
    RewriteEngine On
    
    Options +FollowSymLinks
    
    # Some servers require the Rewritebase directive to be
    # enabled (remove '#' at the beginning to activate)
    # Please note: when enabled, you must include the path
    # to your root vB folder (i.e. RewriteBase /forums/)
    
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^music-forum\.com
    RewriteRule (.*) http://www.music-forum.com/$1 [L,R=301]
    RewriteCond %{HTTP_HOST} www\.music-forum\.com
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    RewriteCond %{HTTP_HOST} www\.music-forum\.com
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    RewriteCond %{HTTP_HOST} www\.music-forum\.com
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    # us coin
    RewriteCond %{HTTP_HOST} ^uscoininfo\.com
    RewriteRule (.*) http://www.uscoininfo.com/$1 [L,R=301]
    # redirect coinforums.com
    RewriteCond %{HTTP_HOST} ^(www\.)?coinforums\.com
    # RewriteCond %{QUERY_STRING} .
    RewriteRule (.*) U.S. Coin Info - Coin Collecting Forums [R=301,L]
    # Test for vbSEO for USCOININFO.COM
    RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
    
    # TEST FOR GALLERY
    
    
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
    RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [L]
    RewriteRule ^(.*)/p([0-9]+)-(.*).html$ showphoto.php?photo=$2 [L]
    RewriteRule ^(.*)/p([0-9]+).html$ showphoto.php?photo=$2 [L]
    RewriteRule ^g([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?cat=$1&page=$3 [L]
    RewriteRule ^g([0-9]+)-(.*).html$ showgallery.php?cat=$1 [L]
    
    RewriteRule ^(.*)/index([0-9]+)-([0-9]+).html$ index.php?cat=$2&page=$3 [L]
    RewriteRule ^(.*)/index([0-9]+).html$ index.php?cat=$2 [L]
    
    RewriteRule ^m([0-9]+)-(.*)-protype([0-9]+).html$ member.php?uid=$1&protype=$3 [L]
    RewriteRule ^m([0-9]+)-(.*).html$ member.php?uid=$1 [L]
    
    RewriteRule ^board.html$ board.php [L]
    RewriteRule ^b([0-9]+)-(.*).html$ board.php?msg=$1 [L]
    
    RewriteRule ^u([0-9]+)-(.*)-page([0-9]+).html$ showgallery.php?ppuser=$1&page=$3 [L]
    RewriteRule ^u([0-9]+)-(.*).html$ showgallery.php?ppuser=$1 [L]
    
    RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [L]
    RewriteRule ^s([0-9]+)-(.*).html$ showmembers.php?cat=$1 [L]
    
    
    RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
    RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
    RewriteRule ^(.+)$ vbseo.php [L,QSA]
    Note, if you are in a folder above your forum with your photopost install, you'll need to reflect that path, ie
    if you are in site.com => forum
    then site.com/gallery

    Code:
    RewriteRule ^s([0-9]+)-(.*)-page([0-9]+).html$ showmembers.php?cat=$1&page=$3 [L]
    would be
    Code:
    RewriteRule ^gallery/s([0-9]+)-(.*)-page([0-9]+).html$ gallery/showmembers.php?cat=$1&page=$3 [L]

  7. #7
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times
    Tried this using:


    #RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-f
    #RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
    #RewriteRule ^gallery/(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ showphoto.php?photo=$2&cpage=$4 [L]
    #RewriteRule ^gallery/(.*)/p([0-9]+)-(.*).html$ gallery/showphoto.php?photo=$2 [L]
    #RewriteRule ^gallery/(.*)/p([0-9]+).html$ gallery/showphoto.php?photo=$2 [L]
    #RewriteRule ^gallery/g([0-9]+)-(.*)-page([0-9]+).html$ gallery/showgallery.php?cat=$1&page=$3 [L]
    #RewriteRule ^gallery/g([0-9]+)-(.*).html$ gallery/showgallery.php?cat=$1 [L]

    #RewriteRule ^gallery/(.*)/index([0-9]+)-([0-9]+).html$ gallery/index.php?cat=$2&page=$3 [L]
    #RewriteRule ^gallery/(.*)/index([0-9]+).html$ gallery/index.php?cat=$2 [L]

    #RewriteRule ^gallery/m([0-9]+)-(.*)-protype([0-9]+).html$ gallery/member.php?uid=$1&protype=$3 [L]
    #RewriteRule ^gallery/m([0-9]+)-(.*).html$ gallery/member.php?uid=$1 [L]

    #RewriteRule ^gallery/board.html$ gallery/board.php [L]
    #RewriteRule ^gallery/b([0-9]+)-(.*).html$ gallery/board.php?msg=$1 [L]

    #RewriteRule ^gallery/u([0-9]+)-(.*)-page([0-9]+).html$ gallery/showgallery.php?ppuser=$1&page=$3 [L]
    #RewriteRule ^gallery/u([0-9]+)-(.*).html$ gallery/showgallery.php?ppuser=$1 [L]

    #RewriteRule ^gallery/s([0-9]+)-(.*)-page([0-9]+).html$ gallery/showmembers.php?cat=$1&page=$3 [L]
    #RewriteRule ^gallery/s([0-9]+)-(.*).html$ gallery/showmembers.php?cat=$1 [L]

    obviously not commented, and it blew up the forums. did I do the gallery/ correct? That is where I have photopost installed.

  8. #8
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times
    Messed around with some more and nothing, got rid of all the gallery/ stuff. My Photopost forum is in uscoininfo.com/gallery and forums are at root (uscoininfo.com). Anytime I enable this all my images are X'd out, and sometimes an image will show, but if you refresh it will X again... ?

  9. #9
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times
    Ok I figured out what the problem is, but I don't know WHY it fixed it. I moved all of the above rewrites to BEFORE all other rewrites and it works ok? If anyone has time to explain that'd be great.

    Jesh

  10. #10
    Senior Member
    Real Name
    Ceri May
    Join Date
    Jul 2009
    Location
    United Kingdom
    Posts
    1,726
    Liked
    15 times
    Blog Entries
    1
    Quote Originally Posted by Jesh View Post
    Ok I figured out what the problem is, but I don't know WHY it fixed it. I moved all of the above rewrites to BEFORE all other rewrites and it works ok? If anyone has time to explain that'd be great.

    Jesh
    This would be correct,

    The vBSEO rewrite states,

    Rewrite (*.) Anything => vbseo.php [L] If matches this rule don't do any others.

    Placing it above also with the [L] tag means they get processed but with the vBSEO rewrite before it will be ignored because the rules already matches (*.)

    Hope that helped.

  11. #11
    Member
    Real Name
    Greg
    Join Date
    Aug 2009
    Posts
    64
    Liked
    0 times
    Quote Originally Posted by Ceri May View Post
    This would be correct,

    The vBSEO rewrite states,

    Rewrite (*.) Anything => vbseo.php [L] If matches this rule don't do any others.


    Placing it above also with the [L] tag means they get processed but with the vBSEO rewrite before it will be ignored because the rules already matches (*.)

    Hope that helped.
    Makes sense now, thanks a lot.

  12. #12
    Member Wulf's Avatar
    Real Name
    Frank Wulfers
    Join Date
    Nov 2010
    Location
    NW Michigan (USA)
    Posts
    31
    Liked
    0 times
    Thanks so much for this thread. I had exactly the same problem but couldn't figure out what the problem was. It works fine now after adding that directory name.

    I would like to use / instead of .html at the end of each URL so it is inline with the rest of my site. What changes are needed to these rewrite rules?

    for example:

    from: http://saabworld.net/gallery/album-name/picture-title.html

    to: http://saabworld.net/gallery/album-name/picture-title/

  13. #13
    vBSEO Staff Andrés Durán Hewitt's Avatar
    Real Name
    Andrés Durán
    Join Date
    Jul 2009
    Location
    Costa Rica
    Posts
    3,393
    Liked
    411 times
    Blog Entries
    1
    Hello Frank,

    Photopost has its own rewrite engine, and the above rules are not related to vBSEO at all. You may need to perform hackings to Photopost source code to achieve this.

    For sure you'll receive better assistance on this if you head over to Photopost.com
    Andrés Durán / Crawlability Inc.
    ˇvBSEO 3.6.0 GOLD Liberado!
    Inaugurando el NUEVO vBSEO Sitemap Generator 3.0. - ˇAHORA disponible para Clientes de vBSEO!

    Síguenos en: Facebook | Síguenos en: Twitter


  14. #14
    Member Wulf's Avatar
    Real Name
    Frank Wulfers
    Join Date
    Nov 2010
    Location
    NW Michigan (USA)
    Posts
    31
    Liked
    0 times
    Thanks Andres, it appears those .html extensions are hard-coded some where in the PP code. Not sure if I want to spend the time to figure all of that out.

    I wish I could convert those rules to use in vBSEO CRR. I have other rules for another add-on in there as well and that works great.

  15. #15
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    You're better off using the built-in system. The url inconsistancies in these products makes using crr's borderline useless.

    ie, order of params are all different, so

    script/$1/$2/
    sometimes matches
    script.php?id=1&name=2
    and sometimes
    script.php?name=1&id=2
    because urls were not kept consistent throughout and you end up with invalid pages.

Similar Threads

  1. Sitemap addon for Photopost and Photopost Classifieds
    By benFF in forum General Discussion
    Replies: 37
    Last Post: 03-18-2012, 02:40 PM
  2. Replies: 3
    Last Post: 12-31-2009, 05:36 AM
  3. Assistance with PhotoPost...and (more) - Rewrites
    By jgommel in forum Custom Rewrite Rules
    Replies: 0
    Last Post: 10-17-2006, 12:49 PM
  4. Photopost rewrites
    By gcc llc in forum Custom Rewrite Rules
    Replies: 7
    Last Post: 07-22-2006, 12:17 PM
  5. photopost
    By Zenith in forum General Discussion
    Replies: 4
    Last Post: 12-20-2005, 04:13 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •