• 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

    • Here's a good laugh for you then. My brother, his girl friend and my son all have the Galaxy A15 5g and they are working absolutely great. My wife and I both have the A16 and they are working great also. Maybe you are laughing at the specs, but for under $100 I would hope you aren't expecting much.
    • We need a game update frequency setting. * Right now your recent games will be auto updated overnight, and your unrecent games won't be updated. The bifurcation of recent and unrecent is fine, but we should be able to control the update frequency for both, with any of the following options: 1. Don't auto update 2. Auto update weekly 3. Auto update overnight 3. Auto update immediately (push) i.e. When I'm playing a lot, I want my recently played games to have push updates, so if a dev releases an update at 4pm, it's already downloaded on my Xbox by the time I get home. The current overnight cadence leaves a lot of wasted time waiting for updates on slow connections. My infrequently played games in ok with deferring to overnight, or maybe weekly, but let the users control their frequency. Basing it on data and last played sounds smart but ignores the human reality that often when I'm busiest and have the least time for games is when it sucks the most to come home and find a huge update list waiting for you.
    • Genocide is intent to exterminate and both the Israeli government AND its people openly declare, even boast about their intent to exterminate Arabs. This society of sick psychopaths has even made songs about it. Zionist means believing Israel should exist as an religious ethno-state where only Jews have rights and everyone else is second class citizen. As for the blood libel thing, we already know zionists get off on killing children. We also know Israel is a safe heaven for all the pedophiles and rapists of the world. Honestly, after what we saw in the Epstein files, I wouldn't put anything past this depraved death cult. Of course all atrocities committed by tHe wOrLds mOsT mOrAl aRmY are always "unproven or taken out of context". Unfortunately for them, their soldiers are dumb enough to leave a trail of their war crimes all over social media. Then again, when you live in a society that's obsessed with death and destruction, posting videos of yourself in the act of ransacking homes and desecrating religious monuments earns you brownie points I guess. Israel is the only society in the world where people come out on the roads for the right to **** prisoners. Also claiming that the BBC said this and AP said that without so much as a link has gotten me curious. Are all zionists this dumb? I really hope you aren't getting paid for this because this is some low effort propaganda.
  • Recent Achievements

    • Week One Done
      StaticMatrix earned a badge
      Week One Done
    • Rookie
      lamborghiniv10 went up a rank
      Rookie
    • One Month Later
      pinnclepd earned a badge
      One Month Later
    • First Post
      X-No-file earned a badge
      First Post
    • One Month Later
      johnjacobb40 earned a badge
      One Month Later
  • Popular Contributors

    1. 1
      +primortal
      517
    2. 2
      PsYcHoKiLLa
      211
    3. 3
      +Edouard
      147
    4. 4
      Steven P.
      92
    5. 5
      ATLien_0
      82
  • Tell a friend

    Love Neowin? Tell a friend!