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 March 6th, 2007, 10:14 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 83
Add Trailing Slash to all urls

If you go here http://www.mustangevolution.com/gallery/ and look at the links to categorys, photos etc you will notice that they don't have a trailing slash on them such as this one: http://www.mustangevolution.com/gallery/showgallery.php/cat/2 how can I make it add a slash to the end so that it appears such as this http://www.mustangevolution.com/gallery/showgallery.php/cat/2/

Last edited by BrentWilson; March 8th, 2007 at 03:20 AM.
BrentWilson is offline   Reply With Quote
Old March 7th, 2007, 09:09 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Your links posted above are completed identical so I do not understand what your asking.

At any rate the links on your site are correct as they are suppose to be they are spider urls

http://www.mustangevolution.com/gall...lery.php/cat/2
__________________
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 March 7th, 2007, 10:32 AM   #3 (permalink)
Member
 
Join Date: Jan 2007
Posts: 86
You can do it by using mod rewrite on your server. I had done it on one of my server such that any url which is of format www.domain.com/cat will change to www.domain.com/cat/

I will check up the script and let you know. In the meanwhile you can also post your query at Mod Rewrite Forums at http://forum.modrewrite.com/ . I doubt whether you would need to post your query because if you search through the forums, you will get an answer by reading existing posts.
mihirp is offline   Reply With Quote
Old March 8th, 2007, 03:21 AM   #4 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 83
Quote:
Originally Posted by Chuck S View Post
Your links posted above are completed identical so I do not understand what your asking.

At any rate the links on your site are correct as they are suppose to be they are spider urls

http://www.mustangevolution.com/gall...lery.php/cat/2
Sorry forgot the trailing slash after the last one. Check it again

Right now on the Gallery all the urls do not have the trailing slash.
BrentWilson is offline   Reply With Quote
Old March 8th, 2007, 06:16 AM   #5 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
Okay I dont get what your trying to say cause the gallery is not suppose to have an extra slash at the end
__________________
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 March 8th, 2007, 08:48 AM   #6 (permalink)
Member
 
Join Date: Jan 2007
Posts: 86
BrentWilson,

I see that your urls now have a trailing slash. Possibly you added the rewrite rule.
mihirp is offline   Reply With Quote
Old March 9th, 2007, 06:17 PM   #7 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 83
Quote:
Originally Posted by Chuck S View Post
Okay I dont get what your trying to say cause the gallery is not suppose to have an extra slash at the end
I want it to have a trailing slash at the end. It makes 0 sense to have the urls rendered on the page without a trailing slash and then when you click on the url the trailing slash is added. It's not good for SEO.

A screen shot so we know exactly what I am talking about here:

This is the forum gallery main page with NO SLASH added to the links:

http://www.mustangevolution.com/brent/noslash.jpg

This is the result when I click on the link highlighted in the above screenshot:

http://www.mustangevolution.com/brent/slash.jpg

As far as the Mod_Rewrite I have changed nothing. Not sure what you are seeing. I searched that forum for "photopost" and it didn't return anything.

So how can I make it add the slash by default.
BrentWilson is offline   Reply With Quote
Old March 9th, 2007, 06:31 PM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,698
You would have to do some kind of mod rewrite. You can investigate mod rewrite by reading

http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
__________________
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 March 9th, 2007, 08:30 PM   #9 (permalink)
Member
 
Join Date: Jan 2007
Posts: 86
Brent,

I think I know what that is. There is already a mode rwerite setting present on your server to process all the urls by adding a trailing slashes to them. That can be set globally or domain wise. Ask your administrator and he should know about it. If not sure, ask him to look for the <virtualhost> entry for this particular domain in httpd.conf and it should show something or perhaps this setting has been done globally for all the domains and it might be active in httpd.conf

Alternately it could also have been done via .htaccess file which could be present in either your home dir or your gallery folder. Ask your admin to check whether it exists or not.

In case you really want the trailing slashes to also effect in the source of your files, then you would have to manually add it to the source code which is pretty simple. I believe simply look for the following type of entries in php files and add the trailing slash.

Quote:
if ( $Globals['spider'] == "yes" )
{
$conurl = construct_ppurl( "{$Globals['maindir']}/showphoto.php/photo/$photo/cpage/$p" );
}
else
{
$conurl = construct_ppurl( "{$Globals['maindir']}/showphoto.php?photo=$photo&amp;cpage=$p"
Change it like this:
Quote:
"{$Globals['maindir']}/showphoto.php/photo/$photo/cpage/$p/" ); instead of
"{$Globals['maindir']}/showphoto.php/photo/$photo/cpage/$p" );

Don't change the dynamic url syntax which is
Quote:
"{$Globals['maindir']}/showphoto.php?photo=$photo&amp;cpage=$p"
I am not sure whether the trailing slash added at the end would 100% work. You might try testing it. Backup all your existing php scripts and make those changes and see how they look.
mihirp is offline   Reply With Quote
Old March 15th, 2007, 12:58 AM   #10 (permalink)
Member
Verified Customer
 
Join Date: Apr 2005
Posts: 83
Thank you for your response. I am slowly finding all of them in the source. I'd still love to figure out a way to do it without altering the source because it's painful upgrading if I have to do this each time.

This should be default. Makes absolutely no sense not to add the trailing slash to the source code but add it when clicked.
BrentWilson 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
Trailing Slash after data/ ccunnin71 Photopost Pro Installation & Upgrades 1 March 2nd, 2007 12:28 PM
apostrophe slash issue. glowinggal Photopost Pro Installation & Upgrades 2 January 3rd, 2006 07:04 PM
Slash Apostrophe showing up. Fortissimo Photopost Pro Installation & Upgrades 21 January 3rd, 2006 11:45 AM
How do I remove slash iloco Photopost Pro How Do I...? 0 April 26th, 2005 08:54 AM


All times are GMT -5. The time now is 10:30 PM.

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