Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 16, 2012, 06:49:45 PM

Pages: [1]   Go Down
  Print  
Author Topic: Error Log Messages list--where's the rest of the 300?  (Read 795 times)
thepixellator
Galactic Royalty
*****
Offline Offline

Posts: 343


Be here now.


WWW
« on: June 16, 2004, 12:16:51 PM »

When I click on "error logs" from CPanel, the page that appears informs me that it will display
Quote
Last 300 Error Log Messages in reverse order

Yet there are only 26 error logs, and no perceivable link to scroll to the rest.

I want to find out the most often requested page that results in an error. Usually these are there because someone else on the web is linking to us with an outdated link. Then I plan to create that page again with a redirect to my preferred page. Any pros/cons to that approach?

And what in the world is /public_html/MSOffice/cltreq.asp and /public_html/_vti_bin/owssvr.dll
and why are they generating errors?
Logged

::Jessica::
Have I reached the party to whom I am speaking?
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #1 on: June 16, 2004, 12:31:42 PM »

Quote from: thepixellator
When I click on "error logs" from CPanel, the page that appears informs me that it will display
Quote
Last 300 Error Log Messages in reverse order

Yet there are only 26 error logs, and no perceivable link to scroll to the rest.

I want to find out the most often requested page that results in an error. Usually these are there because someone else on the web is linking to us with an outdated link. Then I plan to create that page again with a redirect to my preferred page. Any pros/cons to that approach?

And what in the world is /public_html/MSOffice/cltreq.asp and /public_html/_vti_bin/owssvr.dll
and why are they generating errors?

The log is weird... I guess it only shows last 300 in a certain time frame because after awhile, the log clears.

To redirect pages, edit the .htaccess file instead of creating files to redirect. Add a line like this to .htaccess.
Code:
redirect 301 /old.php /new.php


Do you use a MS product to design your web pages... maybe it's a reference created in one of the files. Confused
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
thepixellator
Galactic Royalty
*****
Offline Offline

Posts: 343


Be here now.


WWW
« Reply #2 on: June 16, 2004, 12:53:22 PM »

Hmmmm...In the past I've been too embarrased to admit that I've never heard of htaccess, but now there's no getting around it. I went searching for it and I don't see it in Dreamweaver's remote files panel, or in CPanel. So how do I get to .htaccess?

To design my files, I use Dreamweaver and occasionally GoLive. We just uploaded a Windows Media Player .wmv file to the server, though. We have no php.
Logged

::Jessica::
Have I reached the party to whom I am speaking?
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #3 on: June 16, 2004, 01:00:51 PM »

You shouldn't be embarrassed to ask; everyone had to have learned at some point. Smile

If you don't already have the file, it just means that you haven't made any settings that would have been saved in the .htaccess file. You can create one by using a text editor like notepad and save it as .htaccess. Depending on your OS settings, there could be an extension so it would look like this: .htaccess.txt. Delete the extension if there is one. Upload to your public_html folder. If you have subdirectories that you want to have their own settings, you would put different files in each folder. The file in the top level affects all subfolders.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
thepixellator
Galactic Royalty
*****
Offline Offline

Posts: 343


Be here now.


WWW
« Reply #4 on: June 16, 2004, 01:35:04 PM »

Thanks. I was under the impression that it was a pre-generated file that everyone had! So I went to google and typed in "define: htaccess" and got a bunch of glossary entries.

.htaccess - This is an apache directives file. It is a method for modifying the way apache behaves for a specific directory.

.htaccess - This is the default name of a configuration file that contains "server directives" (commands known by the server) that tell the server how to behave.  One common use for an .htaccess file is to restrict access (password-protection) to specific files or directories on the Internet or intranet, or to specify a particular webpage to be accessed when there the file requested by the browser is not found (error 404).

But Here's the comprehensive guide to htaccess, found in Google with a search of "htaccess"
http://www.javascriptkit.com/howto/htaccess.shtml

Now, at first, I thought it would not be fitting that a static site should use this dynamic element, but I see now that it can control your redirects. ( and by dynamic, I just mean that you can also control who can log in to your already-dynamic site)

But why is it better than creating the offending page and redirecting from there? Would it be for better search engine results?
Logged

::Jessica::
Have I reached the party to whom I am speaking?
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #5 on: June 16, 2004, 03:29:36 PM »

With the .htaccess method, you only need one line in one file. With file redirection, you need to create files all over the place, which adds clutter, and uses up your web space. They're small files, so the clutter is the bigger issue. Search engines do frown upon redirection, although there is a way to do 301 redirects from files, too, I think. However, it's mostly a matter of what's convenient to you. Smile
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
thepixellator
Galactic Royalty
*****
Offline Offline

Posts: 343


Be here now.


WWW
« Reply #6 on: June 16, 2004, 03:59:47 PM »

Success story:

http://www.javascriptkit.com/howto/htaccess7.shtml
That link walked me through it. The directions there were just a tad different from your directions, TranzNDance.

I opened Dreamweaver and went to file>new>text . Then I typed in (all on one line)
Code:
Redirect /MelaleucaStory/Home.html http://www.rmbarry.com/books/melaleuca_story.html
and saved it with the name .htaccess and uploaded it.

And Lo! What once produced a page not found now redirects to my desired page! So easy I could cry. Crying or Very sad
Logged

::Jessica::
Have I reached the party to whom I am speaking?
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #7 on: June 16, 2004, 04:18:58 PM »

Quote from: thepixellator
Success story:

http://www.javascriptkit.com/howto/htaccess7.shtml
That link walked me through it. The directions there were just a tad different from your directions, TranzNDance.

I opened Dreamweaver and went to file>new>text . Then I typed in (all on one line)
Code:
Redirect /MelaleucaStory/Home.html http://www.rmbarry.com/books/melaleuca_story.html
and saved it with the name .htaccess and uploaded it.

And Lo! What once produced a page not found now redirects to my desired page! So easy I could cry. Crying or Very sad

Using DW is the easiest method, but by default, it doesn't handle .htaccess files until you tell it to. I'm used to editing .htaccess in DW and didn't know it could create them; good to know. Smile

Doing 301, however, would tell search engines to update their records, which a simple redirect would not.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
JimBrown
Knowing enough to be dangerous!
Jabba the Hutt
*****
Offline Offline

Posts: 743



WWW
« Reply #8 on: June 17, 2004, 06:38:32 AM »

Quote from: thepixellator
And what in the world is /public_html/MSOffice/cltreq.asp and /public_html/_vti_bin/owssvr.dll
and why are they generating errors?


They are generating errors because they are requests for files that are not on your site.

The requests are generated by someone using IE with Microsoft Office installed.  IE will query the server to see if it supports web discussions.  This query will only happen if the user has the discussion bar turned on.  The discussion bar appears by clicking the "Discuss" icon or View-> Explorer Bar-> Discuss.  The bar is off by default.

The errors can be ignored.

Regards,
...jim
Logged

thepixellator
Galactic Royalty
*****
Offline Offline

Posts: 343


Be here now.


WWW
« Reply #9 on: June 17, 2004, 07:52:09 AM »

Thanks JimBrown,

I didn't know that about web discussion queries. I'll be happy to ignore those errors.

TranzNDance, now that I know why we need to add "301" to the .htaccess, I'll use it!

Let's put this thread to bed!
Logged

::Jessica::
Have I reached the party to whom I am speaking?
MPG
Spaceship Navigator
*****
Offline Offline

Posts: 93


WWW
« Reply #10 on: June 17, 2004, 01:44:53 PM »

A good way to edit the .htaccess file is through the cPanel then the File Manager.  It took a little while to understand how this works but if you click on the directory you want followed by the picture of the folder (this is different than the directory name - is the little folder next to it) then click view contents, you will eventually find the folder with .htaccess in it.

From there I reccommend clicking "edit this file" or the proper option in the upper right hand corner of the file manager.

These files edits will be live so be carefull.  

I think that this is the best way because once you go into another area of cPanel such as "hotlinks protection" your .htaccess file will be changed again.

I could not figure out how to look at this file in DW though.
Logged
TranzNDance
Princess of Naboo
Berserker Poster
*****
Offline Offline

Posts: 11809



WWW
« Reply #11 on: June 17, 2004, 01:54:29 PM »

Quote from: MPG
A good way to edit the .htaccess file is through the cPanel then the File Manager.  It took a little while to understand how this works but if you click on the directory you want followed by the picture of the folder (this is different than the directory name - is the little folder next to it) then click view contents, you will eventually find the folder with .htaccess in it.

From there I reccommend clicking "edit this file" or the proper option in the upper right hand corner of the file manager.

These files edits will be live so be carefull.  

I think that this is the best way because once you go into another area of cPanel such as "hotlinks protection" your .htaccess file will be changed again.

I could not figure out how to look at this file in DW though.

You have to add it to DW's list of recognized extensions:
http://www.lunarforums.com/forum/viewtopic.php?p=77739#77739

It's actually good to have a local backup copy of .htaccess in case cPanel overwrites custom lines, which did happen to me. Sad Fortunately I had a local copy. So now I make manual edits instead of using cPanel applets that affect .htaccess.
Logged

Grr..!! Luff Ya Grr..!! Luff Ya Grr..!! Luff Ya
thepixellator
Galactic Royalty
*****
Offline Offline

Posts: 343


Be here now.


WWW
« Reply #12 on: June 17, 2004, 04:24:24 PM »

Quote

A good way to edit the .htaccess file is through the cPanel then the File Manager. It took a little while to understand how this works but if you click on the directory you want followed by the picture of the folder (this is different than the directory name - is the little folder next to it) then click view contents, you will eventually find the folder with .htaccess in it.

From there I reccommend clicking "edit this file" or the proper option in the upper right hand corner of the file manager.


I tried that and it worked--it opened and it showed exactly what I'd already written in it. But I suppose it worked because I already made the htaccess file. I wonder if I would have found that .htaccess floating in my root directory of the file manager in CPanel BEFORE I wrote my own. I highly doubt it because I'm not utilizing any technologies that would generate the .htaccess for me.
Logged

::Jessica::
Have I reached the party to whom I am speaking?
Pages: [1]   Go Up
  Print  
 
Jump to: