 | |  | | | Photopost Pro How Do I...? Wondering how to do things in PhotoPost? |
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!
|
| |
June 3rd, 2010, 07:13 AM
|
#2 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
| Code: Content visible to verified customers only.
that should do it
|
| |
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?
|
| |
June 3rd, 2010, 09:36 AM
|
#4 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Maybe put those contents in the root folder of your site.
|
| |
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
|
| |
June 3rd, 2010, 09:41 AM
|
#6 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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.
|
| |
June 3rd, 2010, 10:10 AM
|
#8 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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.
|
| |
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?
|
| |
June 3rd, 2010, 11:05 AM
|
#12 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
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.
|
| |
June 3rd, 2010, 11:08 AM
|
#14 (permalink)
| | Photopost Developer Verified Customer
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
|
| |
June 3rd, 2010, 11:10 AM
|
#15 (permalink)
| | Photopost Developer Verified Customer
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 |
| |
June 3rd, 2010, 11:14 AM
|
#16 (permalink)
| | Member
Join Date: Aug 2004 Location: Arizona
Posts: 325
| Quote:
Originally Posted by Chuck S 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 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 |
| |
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.
|
| |
June 3rd, 2010, 06:13 PM
|
#18 (permalink)
| | Photopost Developer Verified Customer
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.
|
| |
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 |
| |
June 4th, 2010, 10:27 AM
|
#20 (permalink)
| | Photopost Developer Verified Customer
Join Date: Jun 2002 Location: Abingdon,MD
Posts: 71,699
|
Thats good to hear
|
| | |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | | | | Thread Tools | | | | Display Modes | Rate This Thread | Linear Mode | |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -5. The time now is 03:19 AM. | |