1
marcan
Site Move and redirection !
  • 2004/4/30 12:39

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Hi !

I transfered my XOOPS site to another domain name. Everything is working find. I put a index.html file in the root of my older site to redirect people automatically on the new site. However, this only work if someone call
http://www.myoldersite.com


If someone enters
http://www.myoldersite.com/modules/newbb

he gets to the newbb of the older site.

I could delete all the files and I will probably do so. Howver, how can I get people redirected to the new site when they enter something like that
http://www.myoldersite.com/modules/newbb


Thanks for your help !

2
Herko
Re: Site Move and redirection !
  • 2004/4/30 12:52

  • Herko

  • XOOPS is my life!

  • Posts: 4238

  • Since: 2002/2/4 1


Simple: keep the directory structure, and put the redirecting index.html file in all those directories You only have to do this for those directories that are used much: modules.news/ and modules/newbb/ I think.

Herko

3
DonXoop
Re: Site Move and redirection !

^^^ time warp...

Are you running Apache or have control of the config or .htaccess?

I do a Redirection at the old site:

Redirect / http://www.newsite.com/

This will redirect all calls for the old site to the new site and maintain the remaining part of the URL. If the URLs are the same at the new except for the hostname then this is all you need.

My old site wasn't XOOPS so I also put specific redirections for common URLS like:

Redirect /forums.asp http://www.newsite.com/modules/newbb/

4
marcan
Re: Site Move and redirection !
  • 2004/4/30 13:00

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


DonXoops,

If I do a redirection like that, would that affect the tequest for images ?

I'm explaining myself. Let's say that in forum here, I've use a [img ] tag to get an image from my old site. Would this be a problem?

Thanks for your help !

5
DonXoop
Re: Site Move and redirection !

Hmmm, I think it would redirect everything. If you're going to maintain the old site then a combo of redirects is what you want. In that case Herko's suggestion is what you want.

My idea is good when phasing out a server. Or as I do it, I have a virtual server configured that responds to all the variations of the domain name old and new, it then redirects the request to the XOOPS server with the proper hostname (sorta a variation of the multi domain hack but done outside xoops).

6
marcan
Re: Site Move and redirection !
  • 2004/4/30 13:12

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Thanks People !

Login

Who's Online

188 user(s) are online (73 user(s) are browsing Support Forums)


Members: 0


Guests: 188


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