1
rob777
http:// and http://www double login issues?
  • 2008/4/23 15:32

  • rob777

  • Just popping in

  • Posts: 45

  • Since: 2005/1/21


Hi all,

Its been a couple years since I played with XOOPS and I have forgot alot.

I recently been working on another XOOPS site and am having some issues.

I'm using XOOPS v. 2.0.16

1. I used fantastico to install xoops. During installation I set it to install into root directory. So it should have came out with the start page as http ://www. sitename.com. But it didnt install that way. My XOOPS homepage is only working as .com/index.php.

What do I have to do to make it so if someone types in address as sitename.com it puts them on the XOOPS homepage instead of my generic "site coming soon" index.html page?


2. Also what do I have to do to stop the double login issues, with http ://sitename and http ://www.sitename?

Thanks,
All

Rob
Thanks for everything!
Later,
Rob

2
rob777
Re: /index.php to regular homepage xxxxx.com question
  • 2008/4/23 16:04

  • rob777

  • Just popping in

  • Posts: 45

  • Since: 2005/1/21


Duuhh. Fixed #1.

I forgot to delete my index.html file from root directory.



Question #2 still open.
Thanks for everything!
Later,
Rob

3
solo71
Re: /index.php to regular homepage xxxxx.com question
  • 2008/4/23 16:05

  • solo71

  • Module Developer

  • Posts: 941

  • Since: 2003/1/29


1. Remove the index.html file on your server root.


4
avtx30
Re: http:// and http://www double login issues?
  • 2008/4/23 16:07

  • avtx30

  • Not too shy to talk

  • Posts: 181

  • Since: 2006/10/12


Quote:

2. Also what do I have to do to stop the double login issues, with http ://sitename and http ://www.sitename?


Redirect the first to the second using .htaccess or changing your DNS records

5
Peekay
Re: http:// and http://www double login issues?
  • 2008/4/23 16:47

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Redirecting 'http://' to 'http://www' using .htaccess is better for SEO too.

I don't have access to the line of code right now, but you should find it with a web search.
A thread is for life. Not just for Christmas.

6
rob777
Re: http:// and http://www double login issues?
  • 2008/4/23 17:50

  • rob777

  • Just popping in

  • Posts: 45

  • Since: 2005/1/21


Ok for #2 here is what I found.

Quote:
Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www. domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www .domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www .newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.


This is the code I used and it seems to be working ok. Except, When I went to login using the login block, it brought up the login/register page. I had to use that login form to get logged in. As far as the pages redirecting to www, all seem to be working ok, even the admin side of site.

Thanks.
Thanks for everything!
Later,
Rob

7
Peekay
Re: http:// and http://www double login issues?
  • 2008/4/23 18:36

  • Peekay

  • XOOPS is my life!

  • Posts: 2335

  • Since: 2004/11/20


Try emptying the contents of the 'templates_c' folder and/or rebuilding the system module (click the 'drive' icon next to the system module in 'system admin/modules').
A thread is for life. Not just for Christmas.

8
rob777
Re: http:// and http://www double login issues?
  • 2008/4/25 23:44

  • rob777

  • Just popping in

  • Posts: 45

  • Since: 2005/1/21


Ok, I emptied the 'templates_c' folder. But when I try to update the system, (or any module) I get the message
Quote:
Could not update System

Back to Module Administration page
Back to Module Administration page
Thanks for everything!
Later,
Rob

9
Runeher
Re: http:// and http://www double login issues?
  • 2008/4/26 1:21

  • Runeher

  • Module Developer

  • Posts: 825

  • Since: 2008/1/24


Did you perhaps delete index.html from templates_c folder?

10
tom
Re: http:// and http://www double login issues?
  • 2008/4/26 2:23

  • tom

  • Friend of XOOPS

  • Posts: 1359

  • Since: 2002/9/21


Hi rob777,

I have it on good authority that you should perhaps look at your mailfile.php

look at define( 'XOOPS_URL'

delete index.php off the end of the url

Save the file (with correct permissions)

Then grab yourself a latté

I've posted on behalf of a good friend. RIP

Login

Who's Online

150 user(s) are online (115 user(s) are browsing Support Forums)


Members: 0


Guests: 150


more...

Donat-O-Meter

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

Latest GitHub Commits