11
JMorris
Re: Error Message on Site
  • 2005/10/18 2:32

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


The activation link problem is a known bug. This is being addressed in RC2 which should be out soon. In the meantime, the following activation link workaround worked for my RC1 site, it will probably work for yours too.

Link: Activation Link fix

The issue with receiving the error message when logging in with a FQDN (Fully Qualified Domain Name) that is not what you set XOOPS up with is a strange one, but I don't think it is a bug per say.

Example: You installed XOOPS using http://www.yoursite.com, but people get the error when they log in using yoursite.com (no www.).

I had the same issue on my site. What I did to resolve the problem is use mod rewrite to create a 301 redirect from http://www.mywebresource.com to mywebresource.com. This way, regardless of which url the end-user uses, they will automatically be forwarded to the url I've specified.

Put the following in the directory where you installed XOOPS in a file called .htaccess

Options All -Indexes
RewriteEngine on
RewriteCond 
%{HTTP_HOST} !^brianrsmith.net$
RewriteRule ^(.*)$ http://brianrsmith.net/$1 [L,R=301]


Make sure the following lines in mainfile.php use http://brianrsmith.net or you're gonna have a headache or two.

// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://brianrsmith.net');
    
define('XOOPS_URL''http://brianrsmith.net');


For future reference, all of the above information can be found using using the FAQ section of this site and using the search function of this site. I'd also recommend using google with the site:xoops.org qualifier appended to the end of your query string.

Hope this helps.

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

12
brsmith
Re: Error Message on Site
  • 2005/10/18 3:22

  • brsmith

  • Just popping in

  • Posts: 12

  • Since: 2005/10/14


Quote:

JMorris wrote:
The activation link problem is a known bug. This is being addressed in RC2 which should be out soon. In the meantime, the following activation link workaround worked for my RC1 site, it will probably work for yours too.

Link: Activation Link fix

The issue with receiving the error message when logging in with a FQDN (Fully Qualified Domain Name) that is not what you set XOOPS up with is a strange one, but I don't think it is a bug per say.

Example: You installed XOOPS using http://www.yoursite.com, but people get the error when they log in using yoursite.com (no www.).

I had the same issue on my site. What I did to resolve the problem is use mod rewrite to create a 301 redirect from http://www.mywebresource.com to mywebresource.com. This way, regardless of which url the end-user uses, they will automatically be forwarded to the url I've specified.

Put the following in the directory where you installed XOOPS in a file called .htaccess

Options All -Indexes
RewriteEngine on
RewriteCond 
%{HTTP_HOST} !^brianrsmith.net$
RewriteRule ^(.*)$ http://brianrsmith.net/$1 [L,R=301]


Make sure the following lines in mainfile.php use http://brianrsmith.net or you're gonna have a headache or two.

// XOOPS Virtual Path (URL)
    // Virtual path to your main XOOPS directory WITHOUT trailing slash
    // Example: define('XOOPS_URL', 'http://brianrsmith.net');
    
define('XOOPS_URL''http://brianrsmith.net');


For future reference, all of the above information can be found using using the FAQ section of this site and using the search function of this site. I'd also recommend using google with the site:xoops.org qualifier appended to the end of your query string.

Hope this helps.

James


Seems this is on the right track. However I wasn't the site crashed when I pasted your .htaccess code.
Are you sure this is what you intended -
RewriteCond %{HTTP_HOST} !^brianrsmith\.net$
Seems there extra backslash after brianrsmith is a problem, at least it works when I yank it out.
Now with the direction you've given me let me keep playing with this and see what I come up with.

13
JMorris
Re: Error Message on Site
  • 2005/10/18 3:38

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


The code in the .htaccess file came from a suggestion from StudioC and is a copy and paste from the file used at http://www.mywebresource.com. <<-- [illustration] Please click to see the URL change to mywebresource.com.

Are you getting a 500 error when you use the syntax I suggested? If so, it may be that your hosting provider does not allow .htaccess overrides.

Also, make sure there are no extra line breaks in the file. These can cause errors as well. Use a plain text editor like Notepad (Windows) or vi (*Nix) to edit the file.

Best Regards,

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

14
brsmith
Re: Error Message on Site
  • 2005/10/18 4:19

  • brsmith

  • Just popping in

  • Posts: 12

  • Since: 2005/10/14


Ahhhh

The .htaccess file has to be placed in the host root, not in XOOPS install directory. It is working perfectly!
Thank you!

I have used Mambo, PhpNuke, PostNuke...you name it and I have used it over the last year or so and when I first switched to XOOPS I absolutely loved it....then of course my little bug showed up.

Thanks for the support. Excellent job. Working perfectly and to be honest with you I don't know squat about html and php so you did an incredible job.

Thanks!!!!

15
JMorris
Re: Error Message on Site
  • 2005/10/18 4:22

  • JMorris

  • XOOPS is my life!

  • Posts: 2722

  • Since: 2004/4/11


No problem, that's what we're here for.

Happy XOOPS'ing!

James
Insanity can be defined as "doing the same thing over and over and expecting different results."

Stupidity is not a crime. Therefore, you are free to go.

Login

Who's Online

433 user(s) are online (359 user(s) are browsing Support Forums)


Members: 0


Guests: 433


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits