PhotoPost Photo Gallery Sales PhotoPost Sales Toll Free Phone Number
Mon-Fri 9am-4pm EST
  PhotoPost Photo Sharing Photo Gallery    Visualize community tm
| | | | | | | | |

Go Back   PhotoPost Community > PhotoPost Support > PhotoPost Pro Support Forums > Photopost Pro How Do I...?

Photopost Pro How Do I...? Wondering how to do things in PhotoPost?

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
Old November 15th, 2006, 07:25 AM   #1 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Whats changed with 5.5 mod_rewrite not working now.

Hi, firstly call me fussy or what ever but I have changed all my search engine freindly URL's to /photos/showgallery/cat/1.php instead of showgallery.php/cat/1 and every version before this one I have had no problems now when going to /photos/showgallery/cat/1.php it shows all photos ( Custom View ). This is not a mod_rewrite error as if I change to normal urls i.e showgallery.php?cat=1 and then try /photos/showgallery/cat/1.php it works fine. What has changed? I have been racking my brain for hours now.
Garrynz is offline   Reply With Quote
Old November 15th, 2006, 07:50 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
http://www.reeftalk.com/gallery/show...hp/cat/504.php

its an error in whatever your doing as nothing has changed
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 15th, 2006, 08:34 AM   #3 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
that doesn't work as such http://www.reeftalk.com/gallery/show...hp/cat/504.php is different to http://www.reeftalk.com/gallery/showgallery.php/cat/504

What if you put this into your .htaccess file

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^showgallery/cat/([a-zA-Z0-9]*).php$ showgallery.php?cat=$1 [L,NC]

and try http://www.reeftalk.com/gallery/showgallery/cat/504.php

There is no reason I can see why it wouldn't work, but I bet if you tried it you will come to that Home » Custom View page instead of Home » ReefTalk Gallery » Reefs yet type showgallery.php?cat=504 into the URL it will show the correct page. Or change the mod_rewrite to

RewriteRule ^showgallery/yadayada/([a-zA-Z0-9]*).php$ showgallery.php?cat=$1

and go to http://www.reeftalk.com/gallery/show...dayada/504.php it will show the correct page!
Garrynz is offline   Reply With Quote
Old November 15th, 2006, 08:43 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Its not to much of a big deal as I am changing the normal url's i.e

$cats['catlink'][$catcount] = "<a href=\"{$Globals['maindir']}/$whichcat.php?cat=$id\">{$CatPerms['catname'][$id]}</a>";

to

$cats['catlink'][$catcount] = "<a href=\"{$Globals['maindir']}/$whichcat/cat/$id.php\">{$CatPerms['catname'][$id]}</a>";

and it works, just strange how it now wont work with spider friendly url's whereas it did before this version.
Garrynz is offline   Reply With Quote
Old November 15th, 2006, 08:51 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
What I am saying is it clearly works just placing the .php on the end brings up the CUSTOM VIEW so that does not break the page

Your issue is clearly within your MOD REWRITE or whatever your trying to do and not something with our script
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 15th, 2006, 09:25 AM   #6 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Oh dear,I give up. Yeah the script is perfect and my mod_rewite is wrong :/
Garrynz is offline   Reply With Quote
Old November 15th, 2006, 09:30 AM   #7 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
The example you give says if you put .php on the cat number it should bring up a custom view and the link I placed shows that that does work fine so I fail to see what your trying to say.

The script is perfect how we write it and performs as such. Your question has to do with doing a hack your doing and nothing with out script functionality. You may post a mod discussion in THE MOD CORNER should you wish to pursue discussion on why your CODE MODIFICATION is not working.
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 15th, 2006, 09:36 AM   #8 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Yes it does work perfectly but something has changed between 5.3 and 5.5 that deals with spider friendly URL's. No if you put /showgallery/cat/948.php it should bring up the actual category like http://www.itraveluk.co.uk/photos/sh...ry/cat/948.php not the custom page which it does with 5.5
Garrynz is offline   Reply With Quote
Old November 15th, 2006, 10:19 AM   #9 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,940
Well nothing has changed in spider urls at all between 5.3 and 5.5 that I see as it is the same as we have always used. Given the discussion here that deals with something outside the program I would suggest you discuss this in the mod corner
__________________
Photopost Developer and Support Engineer

Please do not PM me for support or sales questions. Thank you for your understanding.
Chuck S is offline   Reply With Quote
Old November 15th, 2006, 10:58 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Jul 2005
Posts: 163
Ok, I will try and figure it out. But like i said it's no biggie as it works with spider friendly url's off and just involves more hacking.
Garrynz is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_rewrite option for classifieds shri Classifieds Suggestions 4 October 12th, 2005 05:52 PM
some sort of mod_rewrite thing... Brinnie vBGallery Suggestions 0 July 23rd, 2005 12:04 PM
mod_rewrite Garrynz Before You Buy 4 July 5th, 2005 05:18 PM
mod_rewrite and vba Gallery URLs zigx Before You Buy 27 March 30th, 2005 07:33 PM


All times are GMT -5. The time now is 04:33 AM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0