• 0

Error Log


Question

Hi

I am getting errors in cpanel wich im trying to get rid for week now,... whatever i do there here.

[Sun Sep 05 04:01:29 2010] [error] [client IP] File does not exist: /home/public_html/contact-us, referer: http://www.computerfields.com/contact-us/
[Sun Sep 05 04:01:23 2010] [error] [client IP] File does not exist: /home/public_html/our-products, referer: http://www.computerfields.com/our-products/
[Sun Sep 05 04:01:15 2010] [error] [client IP] File does not exist: /home/public_html/our-services, referer: http://www.computerfields.com/our-services/
[Sun Sep 05 04:01:02 2010] [error] [client IP] File does not exist: /home/public_html/about-us, referer: http://www.computerfields.com/about-us/

in htacces i have this:

RewriteRule ^home$ index.php [L]

RewriteRule ^about-us/$ aboutus.php [L]
RewriteRule ^about-us$ aboutus.php [L]

RewriteRule ^more-about/$ about.html [L]
RewriteRule ^more-about$ about.html [L]

RewriteRule ^our-services/$ services.php [L]
RewriteRule ^our-services$ services.php [L]

RewriteRule ^our-products/$ products.php [L]
RewriteRule ^our-products$ products.php [L]

RewriteRule ^contact-us/$ contactus.php [L]
RewriteRule ^contact-us$ contactus.php [L]

RewriteRule ^terms/$ terms.php [L]
RewriteRule ^terms$ terms.php [L]

RewriteRule ^price-list/$ pricelist.html [L]
RewriteRule ^price-list$ pricelist.html [L]

So i can access pages with / on the end or without.

I did try to disable multiviews option (i put -MultiViews on top beside Options) and its still the same,...

May i please get some help on this?

Thank you in advance!

Link to comment
https://www.neowin.net/forum/topic/935518-error-log/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

Adding

RewriteEngine on

above all your .htaccess code would fix it.

BTW, I'm not too sure but if I remember well, you could replace this

RewriteRule ^price-list/$ pricelist.html [L]
RewriteRule ^price-list$ pricelist.html [L]

to this:

RewriteRule ^price-list/?$ pricelist.html [L] 

It should do the job. I've added ? after / and before $

Link to comment
https://www.neowin.net/forum/topic/935518-error-log/#findComment-593113258
Share on other sites

  • 0

Tnx, i did what u suggested and i will leave it , i guess less lines in htacces now ;)

but i am still receiving errors in cpanel,....

i just realized that i didnt CP whole htacces, so i will do it now,... there might be something else making those errors

Options +FollowSymlinks 
RewriteEngine on

# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0


# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>

# Set up caching on media files for 1 week
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</FilesMatch>

# Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>

# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>

php_value output_handler ob_gzhandler

ErrorDocument 404 /404.html
ErrorDocument 401 /401.html


<filesMatch ".js$">
AddHandler application/x-httpd-php .js
</filesMatch>

RewriteRule ^(([^/]+/)*[^./]+)$ http://www.computerfields.com/$1/ [R=301,L]

RewriteRule ^home$ index.php [L]

RewriteRule ^about-us/?$ aboutus.php [NC,L]

RewriteRule ^more-about/?$ about.html [NC,L]

RewriteRule ^our-services/?$ services.php [NC,L]

RewriteRule ^our-products/?$ products.php [NC,L]

RewriteRule ^contact-us/?$ contactus.php [NC,L]

RewriteRule ^terms/?$ terms.php [NC,L]

RewriteRule ^price-list/?$ pricelist.html [NC,L]

Link to comment
https://www.neowin.net/forum/topic/935518-error-log/#findComment-593115040
Share on other sites

  • 0

<div class="bottom"><link href="style.css" rel="stylesheet" type="text/css" />

You have that section near the bottom, would think that is causing the issues, change to /style.css or remove as it already exists at the top of the page.

Thank you soooooooooooooo much!!!!!!!!!!!

That line was actually in footer file, added / and BOOOOOOOM, worked!

Thank you ALL for help!

I appreciate this very much!

Link to comment
https://www.neowin.net/forum/topic/935518-error-log/#findComment-593121254
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • If you are willing to go to approx $200, then as mentioned in your other thread I think a refurbished Pixel 8 will be a great deal that will last you for years. I recently recommended that to someone at work, he was on a strict £200 budget, which got him an excellent conditioned refurbished Pixel 8 here. He's since told me its the best phone he's ever had and feels its a massive upgrade over his old Samsung A series device. I don't know the sites which deal in refurbished devices in the US, however I’m sure you will have some options like we do here. Failing that Ebay is also quite good in my experience. If you wanted something a bit cheaper, then you could maybe go for an older Pixel 7, these will still get security updates until the end of 2027. Even after that you have good third party OS support from LineageOS. It doesn't have to be a Pixel though, you can buy many older devices for a good deal that would be better than a new $100 phone and flash LineageOS to them: https://wiki.lineageos.org/devices/
    • I don't use one drive, but then I don't use any cloud storage, not even Icloud on my mac. If I did use cloud storage, then I would not use One drive, not because there is anything wrong with it, but because I can use Icloud. The only reason I see to use one drive is if your job requires you to have access to it
    • Not built in, which is not a bad thing. There are ways of adding cloud storage to it, Dropbox is the most well know that also have a client for Linux, but there are others.
    • My advice, dont use teams, use the web version if possible. https://teams.microsoft.com/v2/
  • Recent Achievements

    • Collaborator
      WndSks went up a rank
      Collaborator
    • One Month Later
      Sopa flores earned a badge
      One Month Later
    • First Post
      StaticMatrix earned a badge
      First Post
    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
  • Popular Contributors

    1. 1
      +primortal
      506
    2. 2
      PsYcHoKiLLa
      209
    3. 3
      +Edouard
      152
    4. 4
      Steven P.
      89
    5. 5
      ATLien_0
      79
  • Tell a friend

    Love Neowin? Tell a friend!