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 June 2nd, 2010, 10:55 PM   #1 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
htaccess To Force www

Good evening everyone, what do I need to add to the htaccess file in order to ensure that www is part of the domain? Meaning, if someone types in my url minus the www I want it to redirect and add the www.

I was using the following, however, I know I am missing something:
Code:
Content visible to verified customers only.
Does that make sense?

Thanks in advance!
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 07:13 AM   #2 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Code:
Content visible to verified customers only.
that should do it
__________________
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 June 3rd, 2010, 08:27 AM   #3 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Thanks I will give it a try...should I just copy and paste that to the existing photopost htaccess?
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 09:36 AM   #4 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Maybe put those contents in the root folder of your site.
__________________
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 June 3rd, 2010, 09:38 AM   #5 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
I am using vbseo and already have the htaccess in the root forcing the www. Works in the forums, just not in the gallery? Hmmm
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 09:41 AM   #6 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
well is your gallery installed with the www on the front?

Notice I said root web site htaccess

Your vbseo is installed in your forums directory right?

Nothing is installed in your web root
__________________
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 June 3rd, 2010, 09:45 AM   #7 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Everything (besides gallery) is installed in root

The re-writes are just making it appear that the forums are in the forums directory.
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 10:10 AM   #8 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
The forums are not installed in your root they are installed in a directory called forums like your gallery is in a directory called gallery

You have nothing in your webroot

htaccess trickles down which means the parent htaccess of rewriting urls from the root to www.domain.com will work. Your only rewriting them in the forums directory where vbulletin and vbseo are installed.

You can try putting this in ours but its better if you put what I said in an htaccess in the webroot where nothing is installed. You simply have a rewrite there or a index file forwarding a user to your forums subdirectory

Code:
Content visible to verified customers only.
__________________
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 June 3rd, 2010, 10:43 AM   #9 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Chuck, I promise you...everything but the galleries is in the root, I will take a look at my htaccess, maybe I have a goof in it.

I know that it appears my forums are in a forums directory, however, that is just the re-write doing that.
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 10:51 AM   #10 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
My site is setup exactly like yours

Reeftalk Forums


Can-Am Commander SSV Forums: Can-Am SSV Discussion Forums

Your vb is installed in a directory called forums not your webroot

I dont know what other way to explain this as you keep telling me your forum is installed in your webroot

Your webroot is here

Can-Am Commander SSV Forums: Can-Am SSV Discussion Forums
__________________
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 June 3rd, 2010, 10:58 AM   #11 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Chuck, I understand what you are saying...I completely understand directory structures. I am using vbseo to "fool" the search engines into thinking that it is in its own directory when it truly is not.

If you type www.commanderssv.com you will see it direct to www.commanderssv.com/forums/

Here... go into the forums and hover over a forum, notice that it does not show the forum directory?
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 11:05 AM   #12 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
well you might want to ask vbseo how to do it because its the vbseo thats your problem

You can try adding what I stated in your gallery htaccess in post 8 that should not interfere with our SEO

Usually one places a rewrite to domain.com to www.domain.com in there webroot not in specific directories.

See your issue is with vbseo your rewriting everything to www.domain.com/forums for your forums I would suspect so its not going to work for the gallery
__________________
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 June 3rd, 2010, 11:07 AM   #13 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Ya I am asking over there as well...I probably have a slight edit that is incorrect or something like that. Mainly though you answered a question that I did not ask which is the fact that the htaccess in root should force the www throughout the domain. Thanks Chuck!

If I remember correctly, adding this to the Photopost htaccess caused you to be redirected to the forums when trying to go into the gallery:
Code:
Content visible to verified customers only.
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 11:08 AM   #14 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Yes what I posted would rewrite domain.com to www.domain.com if placed in your webroot
__________________
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 June 3rd, 2010, 11:10 AM   #15 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Notice on my site no matter where you type it always goes to Reeftalk Forums
__________________
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 June 3rd, 2010, 11:14 AM   #16 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Quote:
Originally Posted by Chuck S View Post
Yes what I posted would rewrite domain.com to www.domain.com if placed in your webroot
Right, I was just saying that code cannot be added to the photopost htaccess as it ends up directing you back to the forums when attempting to view the gallery.

Quote:
Originally Posted by Chuck S View Post
Notice on my site no matter where you type it always goes to Reeftalk Forums
I know on your site it always shows forums because you have the forums in their own directory
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 11:29 AM   #17 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Ok now we are getting somewhere...a htaccess in the root will carry througout the domain, however, since there is the Photopost htaccess in the gallery directory, it over-rides the htaccess in root. With that said, I need to add the re-direct to the Photopost htaccess...the one posted above does not work as it re-directs to the forums...will keep plugging away, lol.
dieselpowered is offline   Reply With Quote
Old June 3rd, 2010, 06:13 PM   #18 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
yeah probally something to do with vbseo since thats the only difference between our sites.
__________________
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 June 4th, 2010, 08:50 AM   #19 (permalink)
Member
 
Join Date: Aug 2004
Location: Arizona
Posts: 325
Ok took some time but got it, I had to add the following to the htaccess in the gallery directory:
Code:
Content visible to verified customers only.
Everything is running as it should now!

Thanks
dieselpowered is offline   Reply With Quote
Old June 4th, 2010, 10:27 AM   #20 (permalink)
Photopost Developer
Verified Customer
 
Chuck S's Avatar
 
Join Date: Jun 2002
Location: Abingdon,MD
Posts: 71,699
Thats good to hear
__________________
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
Where should .htaccess go? DDIG Photopost Pro How Do I...? 1 December 28th, 2009 11:29 AM
Edit data .htaccess or fullsized .htaccess? ncangler Photopost Pro How Do I...? 1 December 1st, 2006 06:49 PM
.htaccess oldengine Bugs From 1.0.0 2 February 14th, 2005 10:03 AM


All times are GMT -5. The time now is 03:19 AM.

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