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 October 15th, 2010, 12:26 PM   #1 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 38
How to enable SEO URLs with ISAPI

I just upgraded successfully to 7.0.2. I am on a Windows server and I use ISAPI (successfully) to rewrite my URLs, but I'm having troubles using it to rewrite the PhotoPost URLs. When I turn on SEO spider-friendly urls (in Global Options), my links to image pages (showphoto.php) stop working.

Things I've done:
- Copied all the information from HTACCESS into my httpd.ini file
- Put the httpd.ini file into my /photos directory, where my PhotoPost installation is located (also tried keeping it in the root directory)
- Put the information at the top of my httpd.ini file

Not sure what to try next. Any ideas?
Jennifer Marx is offline   Reply With Quote
Old October 15th, 2010, 12:49 PM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
Well I do not know if I can tell you where the rewrite urls for sure go but you would need to copy the htaccess contents I beleive into your ISAPI manager and then restart your server. At least thats what I see on the net. Your windows host would know best where the contents of our htaccess file should go into the windows setup to make it work.
__________________
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 October 15th, 2010, 07:54 PM   #3 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 38
Thanks. I spoke to my Windows server host and I was told that I "would need to modify the request codes and place them in the httpd.ini file in the root of the site."

So what would the rewrite code for the PhotoPost urls be if the httpd.ini file has to be placed in the root?
Jennifer Marx is offline   Reply With Quote
Old October 16th, 2010, 09:04 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
that would all depend on what your host means. I do not beleive our htaccess files should be modified in any way.

Your windows host should be able to assist there.
__________________
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 October 18th, 2010, 01:05 PM   #5 (permalink)
Member
Verified Customer
 
Join Date: May 2007
Posts: 38
I do have to modify the code placed in the httpd.ini file in order for this to work -- ISAPI 2.x simply will not recognize the code if it is anywhere other than the root. I had to tell ISAPI to look in my photos directory. After hunting about, it turned out to be simply replacing the ^ symbol in the provided code with my directory name (/photos/), like so:

Quote:
RewriteRule /photos/(.*)/p([0-9]+)-(.*)-cpage([0-9+]).html$ /photos/showphoto.php?photo=$2&cpage=$4 [L]
RewriteRule /photos/(.*)/p([0-9]+)-(.*).html$ /photos/showphoto.php?photo=$2 [L]
RewriteRule /photos/(.*)/p([0-9]+).html$ /photos/showphoto.php?photo=$2 [L]

RewriteRule /photos/g([0-9]+)-(.*)-page([0-9]+).html$ /photos/showgallery.php?cat=$1&page=$3 [L]
RewriteRule /photos/g([0-9]+)-(.*).html$ /photos/showgallery.php?cat=$1 [L]

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

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

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

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

RewriteRule /photos/s([0-9]+)-(.*)-page([0-9]+).html$ /photos/showmembers.php?cat=$1&page=$3 [L]
RewriteRule /photos/s([0-9]+)-(.*).html$ /photos/showmembers.php?cat=$1 [L]
It's working perfectly now.
Jennifer Marx is offline   Reply With Quote
Old October 18th, 2010, 01:10 PM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 68,070
yep your host running a windows server would know more the specifics on the windows needs.

In Linux you can set htaccess through any level.

Glad you got it sorted
__________________
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
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
Enable SEO urls TheComputerGuy ReviewPost How do I...? 5 April 19th, 2010 07:26 PM
Can you SEO the urls? marc100 Classifieds Suggestions 1 April 6th, 2008 09:23 AM
Enable spider-friendly URLs pergesu Photopost Pro Installation & Upgrades 3 January 3rd, 2005 11:09 PM


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

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