Zeus Communities

The zeus-users.org community is an independent community for users of Zeus software - ZXTM, ZXTM GLB and ZWS.

zeus-users.org

Recent posts:

Netic A/S logozeus-users.org is hosted by Netic A/S, who provide professional consultancy services for medium and large scale Unix based systems, network and security.

Running your own community? Contact us.

Owen Garrett [Zeus Dev Team] 23 November 2007 9 comments  

Comments:

This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.

Comment from: RAVI AGRAWAL [Visitor] · http://www.onlinesbi.com
LOGIN NOT APPEARE
Permalink 24 January 2008 @ 04:34
Comment from: Rob [Visitor] · http://www.coloursense.net
I have a website hosted on namesco. They use Zeus servers. When I uploaded the site I submitted my URL to google. Google came back with errors:

http://www.coloursense.net/index.html 404 (Not found) Help Mar 10, 2008

I looked into the problem more and received this email back from google forums:

-----
Why index.html shoudl also give a 404 is the problem. It exists, it
returns a 200. Maybe it was a one-time error, soemthign wrong with the
server on that day.

Even though index.html exists OK, it shouldn't be used in navigation
and should be 301 redirected to the root, to take care of anybody
trying it or old bookmakrs or old cached urls. Matter of cleaning up
navigatin and keeping only one url for each page of content.

Yes, the actual default page may well be called index.html and its
content will be shown when you request the domain root url.
But it is also shown when you request domain root url AND index.html
- thus you have 2 urls that show the same content. Robots don't know
it's the same physical file - they don't care. it's 2 different urls
shwoing the same exact content, thus duplication.

I am referring to redirecting so that the URL will be just that of the
domain root url. This goes together with ensuring you don't use index.html in navigation but always just the domain root url.

-------

How can I use a .htaccess file to redirect the http://www.coloursense.net/index.html to the root?

I have spent a week trying to find out, I have no real experience in sorting this out.. could you help please!!!

Thanks



rob
Permalink 23 March 2008 @ 00:49
Comment from: vinny foreman [Visitor]
Hi all,
Would be interested if you managed to find out a way of performing a 301 redirect via the namesco Zeus (linux) servers as I am trying to achieve the same thing. It seems that Zeus themselves have no real direction on how to perform this. You cannot use .htaccess files and I've tried the following but again there is little documentation on where to place the rewrite.script file and when ftp(ing) to the site you can't seem to change file permissions.

The following was placed in a rewrite.script file and placed outside of the root of the site i.e. not in /web/ folder (note I also tried putting the file inside the root folder - no joy):

match IN:Host into $ with ^www\.example\.co\.uk$ if not matched then
set OUT:Location = http://www.example.co.uk%{URL}
set OUT:Content-Type = text/html
set RESPONSE = 301
set BODY = Moved
goto END
endif

When checking the validity of this via numerous online redirect checkers, it doesn't work.

Any guidance would be much appreciated.

Vin
Permalink 28 June 2008 @ 21:39
Comment from: rodger [Visitor]
Anyone know how I can post a question to community zeus experts? I run a website under an Eclipse business package using zeus. I do not have a control panel and that company admin tell me I cannot have chmod done on files so I own them and can easily control permissions from my client FTP program (some I can some I cannot). I run a Joomla! CMS site.

Thanks to anyone who can help.
Permalink 07 September 2008 @ 14:33
Comment from: Owen Garrett [Zeus Dev Team]
Rodger,

Your hosting provider will be your first point of call as they have sold the hosting infrastructure to you.

If they have provided the software you are using, they ought to ensure that it's set up with the correct permissions so that you can use it. Explain to your provider what files you need chmoded, and why.

If the files you want to modify are shared between everyone's websites, you should not be changing them and the hosting provider ought to be able to explain how to use the software without chmoding the files.

Any files created by the application will probably be created as a non-privileged user (i.e. not root), most likely as your own userID so that other users cannot interfere with them. ZWS can run extensions (CGI, FastCGI/PHP etc) as different users, so this should be easy for your hosting provider to set up.

Alternatively, if you've installed the software yourself, you may need to talk to your hosting provider to make sure it's running as the correct UID. You may find that without the correct configuration, ZWS runs external applications as a common, default user such as 'web', rather than as your own UID.

Owen
Permalink 08 September 2008 @ 11:07
Comment from: vekta [Member] · http://www.vekta.co.uk
Hi All,

Firstly you will need to create a new blank text file and add the following rule.


RULE_1_START:
match URL into $ with ^/index\.(htm|asp|html|php)
if matched then
set OUT:Location = http://www.coloursense.net/
set OUT:Content-Type = text/html
set RESPONSE = 301
set BODY = Moved
goto END
endif
RULE_1_END:

Then save it and upload it to your root folder where your homepage is located and rename it: rewrite.script

The above rule will give a 301 error for index.htm index.asp, index.html and index.php requests and will re-direct them to your main url.

Hope this helps!
Permalink 09 February 2009 @ 14:19
Comment from: Robert [Visitor] · http://www.emailmarketingsolution.co.uk
Hi,

I've just had to resolve a similar problem and have found that the following code works on our Zeus hosted account. Hope this helps!

RULE_0_START:
match IN:Host into $ with ^yourdomain\.co\.uk$
if matched then
match URL into $ with ^/(.*)$
set OUT:Location = http://www.yournewdomain.co.uk/$1
set OUT:Content-Type = text/html
set RESPONSE = 301
set BODY = Moved
goto END
endif
RULE_0_END:
Permalink 30 March 2009 @ 13:58
Comment from: Rob Layfield [Visitor] · http://www.karyx.co.uk/
Thanks Robert!

that worked and I can't believe that you posted up the answer just 2 hours ago.

I was on the right track but what I forgot to take into account of was escaping the dots in the REGEX, so my match was never happening.

Thanks for saving me & the rest of the community a lot of time and trouble...
Permalink 30 March 2009 @ 15:49
Comment from: ap [Visitor]
Can you send all logs to syslog in ZXTM (not only alerts)?
Permalink 02 July 2009 @ 21:50
Leave a comment ...
Your email address will not be displayed.
Your URL will be displayed.
This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Options:
 
(Line breaks become <br />)
(Set cookies for name, email & url)
www.zeus.com

News and Articles

Other Resources