Autor Thema: Error on OC US  (Gelesen 2617 mal)

Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Error on OC US
« am: 18. Januar 2011, 04:02:42 »
Please see this thread: http://forum.opencaching.us/viewtopic.php?f=4&t=404&p=2441#p2441

Any suggestions would be appreciated.  Also, wince our key is for "www.opencaching.us" and not just "opencaching.us", how would I force the www. to be added if not in the URL?
Jerry
Former OC US Admin

Offline mic@

  • Vereinsmitglied
  • Large
  • *
  • Beiträge: 6442
  • oc-only Verstecker
Re: Error on OC US
« Antwort #1 am: 18. Januar 2011, 06:53:02 »
Zitat von: RVRoadTrip
Please see this thread: http://forum.opencaching.us/viewtopic.php?f=4&t=404&p=2441#p2441
==> The board requires you to be registered and logged in to view this forum.
Could You please give a short summary of the problem.

oliver

  • Gast
Re: Error on OC US
« Antwort #2 am: 18. Januar 2011, 13:07:39 »
I added a redirection for all requests from "opencaching.de" to "www.opencaching.de". You can do this in the VirtualHost-Config of httpd.conf

<VirtualHost *:80>
(...)
    RewriteEngine On
    # Aufrufe ohne www-Zusatz um das www ergaenzen
    RewriteCond %{HTTP_HOST} ^opencaching.us$ [NC]
    RewriteRule ^/(.*)$ http://www.opencaching.us/$1 [R=301,L]
(...)
</VirtualHost>

Try: http://opencaching.de/viewcache.php?cacheid=150740

Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Re: Error on OC US
« Antwort #3 am: 18. Januar 2011, 13:44:31 »
That's what I was looking for.  Thanks!  Now where is this file located that I need to edit?  I looked but didn't find it.

As for the forum thread, it was this: "The send to Google maps brings up Google but says it's a bad KML file."
« Letzte Änderung: 18. Januar 2011, 13:48:51 von RVRoadTrip »
Jerry
Former OC US Admin

Offline OlofL

  • Nano
  • **
  • Beiträge: 70
  • OC SE Team
Re: Error on OC US
« Antwort #4 am: 19. Januar 2011, 07:03:07 »
It might also be called DefaultHost or similar depending on your apache installation. It is probably in /etc/ somewhere.

We also needed to fix some things with the cookie settings, I can check if the host-thing doesn't help you fully.

Offline n0x-f0x

  • Nano
  • **
  • Beiträge: 78
Re: Error on OC US
« Antwort #5 am: 19. Januar 2011, 09:55:14 »
I think you can use a simple .htaccess file:

1. If it does not exists, create a file with the name .htaccess in the root folder of the webspace (the folder in which the index is located)
2. If the file hasn't existed you must put this in the file:
Zitat
RewriteEngine on

Options FollowSymlinks

rewritecond %{http_host} ^opencaching.us [nc]

rewriterule ^(.*)$ http://www.opencaching.us/$1 [r=301,nc]
If it existed you have to look if the lines with RewriteEngine or the Options line exist. These lines shouldn't exsits multiple times.
The 4 lines I posted should be the first 4 lines in your .htaccess file becaus other RewriteConditions could depend on the "www."

Hope its clear what I mean ;)


Source: http://ageedesign.com/blog/2008/04/08/add-www-to-your-domain-automatically-with-htaccess/
Alle Beiträge in jeglicher Form sind ausdrücklich NICHT offizielle Äußerungen! Offizielle Äußerungen werden klar als solche erkennbar sein!
All contributions in any form are not official statements! Official statements will be clearly recognizable as those!

Offline n0x-f0x

  • Nano
  • **
  • Beiträge: 78
Re: Error on OC US
« Antwort #6 am: 19. Januar 2011, 09:58:18 »
Now where is this file located that I need to edit?
The httpd.conf is located in the config folder of Apache.
Actually I found it there, but you can locate the file where you want it to be and I don't know if my config is the default config
Alle Beiträge in jeglicher Form sind ausdrücklich NICHT offizielle Äußerungen! Offizielle Äußerungen werden klar als solche erkennbar sein!
All contributions in any form are not official statements! Official statements will be clearly recognizable as those!

Offline sp2ong

  • Nano
  • **
  • Beiträge: 63
  • OC PL Team
    • OpenCaching Poland
Re: Error on OC US
« Antwort #7 am: 19. Januar 2011, 10:46:11 »
Hi Jerry,

I have add to your htaccess, please check that exist problem still
Waldek sp2ong OC PL

Offline RVRoadTrip

  • Nano
  • **
  • Beiträge: 50
  • Opencaching.US
    • Opencaching.US
Re: Error on OC US
« Antwort #8 am: 19. Januar 2011, 14:40:05 »
Thanks Waldek!
Jerry
Former OC US Admin

Offline mic@

  • Vereinsmitglied
  • Large
  • *
  • Beiträge: 6442
  • oc-only Verstecker
Re: Error on OC US
« Antwort #9 am: 24. Januar 2011, 09:15:23 »
I have add to your htaccess, please check that exist problem still
But keep in mind that the short link don´t work for pictures!

So this link doesn´t work:
http://opencaching.us/images/uploads/FEAB55FC-4FBB-38AD-E7B5-4E77EFFE1A4B.jpg

But with preceding www it is working:
http://www.opencaching.us/images/uploads/FEAB55FC-4FBB-38AD-E7B5-4E77EFFE1A4B.jpg