Koozali.org: home of the SME Server

Redirect Question

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Redirect Question
« on: January 05, 2008, 04:10:06 PM »
I'm not sure how to redirect

I've installed Joomla from the contribs instruction and it's in the opt/joomla which means my site is now located at www.mysite.com/joomla

how do I get any of my ibays which are hosting a site to redirect to the /joomla site.

I have for example an ibay and the domain is setup to www.iclbiz.com and I have a cheap cookie cutter template in there for kicks, but I want to be able to redirect that ibay to the /joomla site

Also if I do that will the hosted ibay loose the ability to hose my ebay images ? Which I currently host in folders like www.mysite.com/folder1 , www.mysites.com/folder2 etc and so on.

If I do a redirect within a script of some sort will make the subfolders also redirect. cause I only want the domain to point to my www.mysites.com/joomla and not all the other folders ? 

I'm not sure I understand all the things I've read on the forums and wiki etc. I've read about scripts and things.

Can this be done with a simple script file added into the www.iclbiz.com ibay ?

Please advise or link to advise on this, thanks
« Last Edit: January 05, 2008, 04:22:36 PM by Agent86 »

Offline JRM

  • 3
  • +0/-0
Re: Redirect Question
« Reply #1 on: January 05, 2008, 10:28:35 PM »
I don't use joomla myself, but if they put it in /opt, there probably already are aliases in the SME template.
alias /joomla  /opt/joomla
To use it, you just add it in the browser path.
www.yoursite.com/joomla

to link it; use an html anchor tag <A HREF="http://www.yoursite.com/joomla/">visit my joomla site</a>

I hope this answered your question

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Redirect Question
« Reply #2 on: January 06, 2008, 02:45:58 AM »
I don't use joomla myself, but if they put it in /opt, there probably already are aliases in the SME template.
alias /joomla  /opt/joomla
To use it, you just add it in the browser path.
www.yoursite.com/joomla

to link it; use an html anchor tag <A HREF="http://www.yoursite.com/joomla/">visit my joomla site</a>

I hope this answered your question

Thanks for the reply, I"m not sure this answers things, but I'm having difficulty trying to put into words what I would like to do.

Basically I have a couple sites in my ibays that work great for example www.folder1.com and www.folder2.com I have domains setup for them, and these are setup in differnent ibays. Well with the joomla being in the opt/joomla basically as you pointed out my joomla site now becomes www.folders1.com/joomla for example.

So I guess my question is can I make the www.folders2.com redirect to the www.folders1.com/joomla ? and in a way that will not effect my ability to host images on ebay such as www.folders2.com/ebay/1.jpg etc. Basically I want to redirect www.folders2 to www.folders1.com/joomla without loosing the abilty to have people go to www.folders2.com/ebay or www.folders2.com/ebay1 etc and so on.

I hope this clarifies the question a bit

Thanks for any advise on this.

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Redirect Question
« Reply #3 on: January 06, 2008, 01:17:58 PM »
Basically I have a couple sites in my ibays that work great for example www.folder1.com and www.folder2.com I have domains setup for them, and these are setup in differnent ibays. Well with the joomla being in the opt/joomla basically as you pointed out my joomla site now becomes www.folders1.com/joomla for example.
No, I believe we have explained this (perhaps also to you) on forums multiple times. Nothing you add to locations on your network is shared automatically to browsers hitting your server, to do so you need to modify the configuration of your webserver accordingly.

So I guess my question is can I make the www.folders2.com redirect to the www.folders1.com/joomla ? and in a way that will not effect my ability to host images on ebay such as www.folders2.com/ebay/1.jpg etc. Basically I want to redirect www.folders2 to www.folders1.com/joomla without loosing the abilty to have people go to www.folders2.com/ebay or www.folders2.com/ebay1 etc and so on.
Unless Joomla, which I am unknown with, offers a feature to run multiple websites from one file location on your server you are unable to do so.

If Joomla supports this there should probably be information in the documentation of that packages describing how to do this including the addition of modifying your webserver configuration files.

Be aware that the webserver configuration files are generated based on templates. Before you start modifying it's configuration file be sure to have read and understand the relevant sections of the SME Server Developers Guide linked in the wiki.

If you are not familiar with configuring web servers such as apache you might decrease the security of your server severely by modifying your configuration like this and most likely it's functionality as well as flaws in the configuration files might crash your webserver or refrain from starting it properly which might leave you in even bigger problems like webmail and the management interface not working properly as well. Perhaps it is wise to read the documentation of the Apache webserver before doing such things as well.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline JRM

  • 3
  • +0/-0
Re: Redirect Question
« Reply #4 on: January 06, 2008, 05:55:51 PM »
Maybe I still am misunderstanding what exactly you are trying to accomplish, but perhaps these is no need to use two ibays at all.

Using the same methods (whatever they may be) to switch from www.folders2/ebay to www/folder2/ebay1, also switch to
www.folders2/joomla?

I think you just want to "change the page", is that correct?

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Redirect Question
« Reply #5 on: January 06, 2008, 06:01:37 PM »
HI all

I don't think cactus, that the answer matches the question, but perhaps my question also needs some clarification, sorry about that.

I do sincerely appreciate the answer in any case.

I don't think this was covered on any other forums,and perhaps it's not really a contrib issue other then the fact I'm talking about a joomla contrib, however I did read about redirecting and the htaccess file changes and php etc.

I don't really want to change anything on the server itself, but only create a sort of html redirect or some other script I could put in my html folder for the sites to redirect.

For now I have all my ibays setup the way I want them, and they work perfectly, I can host my site in the html folder with a simple index.html file etc. and also my ebay images in other folders for example www.mysite.com/ebay/1.jpg which would be stored in my html/ebay folder I also create web albums and put them in a folder like www.mysite.com/ebay/computer which would be in the html/ebay/computer folder on the ibay. And it works perfectly I would not want to change that.

As far as joomla goes I don't want multiple joomla sites, I like the way it's working now perfectly on www.mysite.com/joomla no problems there.

But I just was worried a redirect script or some sort perhaps html redirect such as:     <META HTTP-EQUIV="Refresh"
          CONTENT="0; URL=html-http://www.mysite/joomla">
or something like that.

I'm just worried if this will effect the other ebay images being stored, I just don't want that redirect to take over the whole ibay and lose the ability to host my ebay images on this ibay.

Thats all, no SME recofiguration or any apache changes or anything. Just wondering about the simple redirect scripts or html's and how they may effect the rest of the ibay ?

I hope this clarifies things, and thanks for the input.



« Last Edit: January 06, 2008, 06:06:06 PM by Agent86 »

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: Redirect Question
« Reply #6 on: January 06, 2008, 06:14:24 PM »
I don't think cactus, that the answer matches the question, but perhaps my question also needs some clarification, sorry about that.
Then, at least to me there is some information missing indeed, as from your introduction it seems that by just putting content in the /opt directory it will be presented by the webserver accessing your server at the /joomla1 or /joomla2 location which is certainly not the case for default SME Servers.

For now I have all my ibays setup the way I want them, and they work perfectly, I can host my site in the html folder with a simple index.html file etc. and also my ebay images in other folders for example www.mysite.com/ebay/1.jpg which would be stored in my html/ebay folder I also create web albums and put them in a folder like www.mysite.com/ebay/computer which would be in the html/ebay/computer folder on the ibay. And it works perfectly I would not want to change that.

As far as joomla goes I don't want multiple joomla sites, I like the way it's working now perfectly on www.mysite.com/joomla no problems there.

But I just was worried a redirect script or some sort perhaps html redirect such as:     <META HTTP-EQUIV="Refresh"
          CONTENT="0; URL=html-http://www.mysite/joomla">
or something like that.

I'm just worried if this will effect the other ebay images being stored, I just don't want that redirect to take over the whole ibay and lose the ability to host my ebay images on this ibay.

Thats all, no SME recofiguration or any apache changes or anything. Just wondering about the simple redirect scripts or html's and how they may effect the rest of the ibay ?

I hope this clarifies things, and thanks for the input.
If I understand you correctly you want to have an index.html script in other ibays (other than the primary site hosting joomla) to point to your joomla installation, if so you should be save by creating the suggested index.html file with the redirect as this redirect will only work if the index.html file is accessed (or no other file listed in the DirectoryIndex before index.html in your httpd.conf file is found in the directory), other files should be presented properly on direct access.

A drawback might be that the original index.html in ibay locations that you want to have redirecting to your /joomla location will be lost by overwriting them with your index.html with redirect option.

As not all browsers might support this method of redirect it might be nice of you to display some text as well and a link to the proper location in case the redirect does not work so a user could also manually follow the redirect in case the browser does not do it automatically.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Redirect Question
« Reply #7 on: January 06, 2008, 10:30:15 PM »
Thanks for the reply

Yes it's true some information is missing because I can only explain what I want the result to be and not really any information about how to do it properly. This is mainly because I'm trying to avoid changing the way SME is designed to work and what I'm already using it for.

Even though I seem to get a desired result with the html redirect, I'm not sure it's best, because I really only did that because I've already setup my domain and Cname,Arecords on the DNS to work with my currently working ibay.

I mean really the result I'm looking for since I already have one of my domains setup on the DNS which is yahoo pointing to my www.folder1.com ibay etc.; and I'm only using that domain currently for my ebay images.

So having said that I have this sort of extra open ibay for use of a webpage,even though I'm hosting ebay images there it's still available to host a webpage. I did actually have a page there for kicks a sort of free website template I downloaded someplace. But anyhow thats the only reason I guess I considered it was just because it's there.

But then I installed the joomla from the contribs using the instruction that were posted there. And so I now have this www.mysite.com/joomla website address by default since thats just how it turned out when I installed the joomla contribs using the instructions listed.

I would have preferred to install perhaps inside ofmy currently working ibay, but I was not sure if it would work or how to change the installation instructions to make it work. So I figured it might be easier to just redirect my already working ibay to the already working joomla installation on my primary ibay.

But i also have another website on my primary ibay as well so I didn't want to effect that ibay either. LOL

Anyhow I think the redirect will be ok for now, until I figure out how to either install joomla into an ibay or how to properly make the server redirect to the joomla installation.

And I'm glad to know that my current folders and web addresses/folders won't be effected

Thanks again for the help.

P.S can you tell me what is the most typical way for people using joomla on SME server ? Do they just give out their /joomla address or do they make it work in an ibay ? or do they adjust the server to redirect somehow ?
« Last Edit: January 06, 2008, 10:34:22 PM by Agent86 »

Offline electroman00

  • ****
  • 491
  • +0/-0
Re: Redirect Question
« Reply #8 on: January 07, 2008, 10:10:01 PM »
Stephen
Quote
Yes it's true some information is missing because I can only explain what I want the result to be and not really any information about how to do it properly. This is mainly because I'm trying to avoid changing the way SME is designed to work and what I'm already using it for.

We understand..

Quote
I mean really the result I'm looking for since I already have one of my domains setup on the DNS which is yahoo pointing to my www.folder1.com ibay etc.; and I'm only using that domain currently for my ebay images.

First I would assume that you are not redirecting www.folder1.com (it is your example here) simply because your not the owner of the domain.
folder1.com | Owner: Silvana Luciani, Italy, Via Fontana 42, San Giuseppe, FE 44020 | Server location: Canada

Did you create ibays i.e. folder1 folder2 etc.

In that case you would address them as http://www.foolishlys.com/folder1/files and http://www.foolishlys.com/folder2/files

or simply

http://www.foolishlys.com/folder1/ for the http folder and the index.html file could redirect from there within each ibay to your desired locations. 

I see you have joomla installed @ http://www.foolishlys.com/joomla/ and
Auction software @ http://www.foolishlys.com which I would assume is in the Primary ibay.

Stephen I also see your the owner
foolishlys.com | Server location: United States

Quote
Even though I seem to get a desired result with the html redirect, I'm not sure it's best, because I really only did that because I've already setup my domain and Cname,Arecords on the DNS to work with my currently working ibay.

Well we would have to assume that DNS is pointing to the Primary ibay .....your auction site?

Seems what your asking is to have www.foolishlys.com point to the auction site and joomla.

You could move the auction site to any ibay or to /opt of your choice and leave joomla in /opt.

That would leave the Primary ibay empty for redirect..
 
Then redirect the primary ibay to joomla and set a menu link in joomla to the auction site.

Using the Primary ibay only for internal redirect.

That is one way to accomplish what I assume is what your looking to do.
Quote
P.S can you tell me what is the most typical way for people using joomla on SME server ?
Do they just give out their /joomla address or do they make it work in an ibay ? or do they adjust the server to redirect somehow ?

joomla in /opt is the preferred installation and using some method  of redirect to it.

In fact your auction software would be better off in /opt and a redirect or link from joomla to it.

Think of it as this, /opt is inside an access castle and ibay's are outside the access castle.

Database Apps that access their data within the castle (/opt) will have higher security then Apps
outside the access castle (ibay's) for they are accessing database data within the castle, access
rights will need to be loosened.

Thus ibay's can prove to be less secure then /opt .
HTH
« Last Edit: January 09, 2008, 02:57:36 PM by electroman00 »

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Redirect Question
« Reply #9 on: January 09, 2008, 12:33:50 AM »
Hi
Thanks for the replies everyone

This is great information for me.

Yes it's true I have the www.foolishlys.com site, but I also have www.iclbiz.com which I've now setup a redirect with a simple html redirect to the www.foolishlys.com/joomla

And I agree the auction site would be better in the /opt. I never could getting totally working correctly in the ibay anyhow. Not sure why I messed with all the permissions and kept getting it closer and closer but it still have problems

Anyhow, thanks for the advise.

And as far as suggesting some redirect method ? goes that is the thing I'm not familiar with really. If I redirect from www.iclbiz.com which is in lets say ibay1 which is in the html folder of the ibay. And also other folders exist in the html folder for my ebay images. So I don't want to effect that in anyway. But I setup the html redirect to www.foolishlys.com/joomla which is in my /opt well in this case as you suggested I could put a auction folder in the opt/auction and put my auction in there and in this case I could put a button on the foolishlys.com/joomla to link to the auction

For that matter I also have installed the oscommerce and perhaps could do away with the auction size all together since it's installed in the /opt

Anyhow this is all great news, and thanks for the help I'll read up some more on redirect and play with it some more Thanks

Any advise on the best methods for redirects would be great if you have a most typical and simple solution for this I would love to read up on the subject.

 :)

Offline churchtech

  • 10
  • +0/-0
Re: Redirect Question
« Reply #10 on: January 19, 2008, 01:48:03 AM »
Agent86,
Have you looked at any of william_syd's recommendations in this thread:http://forums.contribs.org/index.php?topic=35553.0?  I have used the Symlinks method to redirect my primary to opt/joomla.  It is hard for me to discern if this type of redirect would give you what you need.  Best of luck. :)
"Everything in the universe has rhythm. Everything dances."
~Maya Angelou

Offline william_syd

  • ****
  • 1,608
  • +0/-0
  • Nothing to see here.
    • http://www.magicwilly.info
Re: Redirect Question
« Reply #11 on: January 19, 2008, 06:59:47 AM »
Agent86,
Have you looked at any of william_syd's recommendations in this thread:http://forums.contribs.org/index.php?topic=35553.0?  I have used the Symlinks method to redirect my primary to opt/joomla.  It is hard for me to discern if this type of redirect would give you what you need.  Best of luck. :)

I'm glad something there worked for you.

I had a wiki link pointed out to me. It's probably the direction to go for a more technically correct solution.
http://wiki.contribs.org/Web_Application_RPM#Webserver_templates

Agent86,

There comes a time when you have to move from "what if" to "just do it". While not a stratagy I would apply to space flight or explosives, we are talking about software running on fixed equipment.

Take notes of what was there and what you changed. Try it. Did it work - yay. Did it fail - reverse the changes.

And always have backups before you tinker.

Regards,
William

IF I give advise.. It's only if it was me....

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Redirect Question
« Reply #12 on: January 22, 2008, 03:41:13 AM »
LOL yup,

Well, thanks all, I'm using the simple index.html redirect for now that will be ok,

As far as trying things, basically one problem I have is if I break something I don't know how to undo it or fix it and so that causes lots of questions for me that I probably would not have to ask because I would be a bit more self sufficient with linux. So backing up is a problem cause I don't really know how other then my raid drives and/or sme tape backup or perhaps backup to desktop feature but my data is too large for desktop now.

If I could play with the machine and simply do a command to go back to the drawing board that would be great but I don't know how to do that.

Anyhow I"ve read those wiki's and also the other suggestions they sound pretty cool. I may experiment with my oscommerce install on that one to see how that goes.

By the way, one more question on the html redirect method ??

Does anyone know how to make the url in the address bar still appear as the url that it was redirected from ?

Please advise

Offline electroman00

  • ****
  • 491
  • +0/-0
Re: Redirect Question
« Reply #13 on: January 24, 2008, 03:27:26 AM »
Quote
Does anyone know how to make the url in the address bar still appear as the url that it was redirected from ?

URL Frames might be one way....

Offline raem

  • *
  • 3,972
  • +4/-0
Re: Redirect Question
« Reply #14 on: January 24, 2008, 02:56:14 PM »
Agent86

Quote
So backing up is a problem cause I don't really know how other then my raid drives and/or sme tape backup or perhaps backup to desktop feature but my data is too large for desktop now.

There are numerous backup methods available that split the backup file into smaller parts ie less than 2Gb.
Try
http://wiki.contribs.org/Backup_with_dar
or
http://wiki.contribs.org/DAR2

or even backup to a remote server
http://wiki.contribs.org/Affa

I use all of these and they work fine.

...

Offline Agent86

  • ****
  • 592
  • +0/-0
    • http://www.iclbiz.com
Re: Redirect Question
« Reply #15 on: January 25, 2008, 01:20:45 PM »
Thanks I'll start reading