Custom 404 does not work on any dir/file greating than the 1st level ? advice plz - http-status-code-404

I need to cover all nonexistent directories or nonexistent files within the whole of my website gb-online.co.uk
I have 404.shtml 404style.css and gears.png in the domain root directory.
It only gives the correct 404 with the 1st level nonexistent directories or nonexistent files
ie
https://gb-online.co.uk/1.php
or
https://gb-online.co.uk/1
anything above this 1st level does not pickup the css file and thus does not work, but it picks up the 404.shtml
ie
https://gb-online.co.uk/1/2.php
or
https://gb-online.co.uk/1/2
Surely it cannot be that I have to apply it to every directory. I must be doing something wrong.

Got that bit working by adding ../ to the path of the css file in the shtml file.
However when 'inside' prestashop any 404 does not work, it only brings up the default prestashop 404
ie
https://gb-online.co.uk/neweshop/1
Any ideas

Related

Debug CakePhp Step by step

My client want the code I've did in a subfolder.
I've put everything inside but I have only a blank page.
When I try to use phpinfo in the index file, nothing appears.
On the app/core.php the same
I don't have access to root to test if it's an issue with the root .htaccess or with my script.
Which cakephp file should be called first if the subdomain setup is good?
Thanks.
EDIT:
Ok I know what's wrong. SetEnv PHP_VER 5_3 does not work on the shared
hosting where my client have his main website. The client does not
want to upgrade the php version and this directive in the .htaccess
seems to be ignored. What alternatives do I have ...?

CakePHP: Set up a new project within another project

I've copied a homepage to the server, after a few problems with 1&1, if this matters, I've changed the .htaccess in the root, /app and /app/webroot directories. After
RewriteEngine on
I've included
RewriteBase /
to get it to work. However, beside the homepage itself, I've made an administration by adding a new CakePHP-project in the folder "Administration" which I've simply copied in the root-directory. Worked perfectly with XAMPP, but unfortunatly not with the 1&1-server. I've also tried to copy it in the app-folder, but visiting example.com/Administration will just give me an error, that says, the controller cannot be found.
Any ideas how I could access my administration?

where put clientaccesspolicy.xml and crossdomain.xml ? - 404 not found error

I have Silverlight app and when I want to do some action Firebug show me that on this two files I have 404 not found error.
So should I insert this files somewhere in my solution or to IIS rootwww directory?
Or it's other solution of this error?
You should put those files in the root virtual directory of IIS, which defaults to C:\Inetpub\wwwroot\, such that the file shows up as "http://<yourdomain>/clientaccesspolicy.xml", or "http://<yourserver>/clientaccesspolicy.xml".

ubercart file download setting problem

Hi I am using drupal 6.x and ubercart 2.x. I trie dto create a product,but when it comes to add the file download feature I am getting some issue. I put a folder called downloads in the drupal folder and one file inside the download folder.then I gave the path as "drupal/downloads but it is telling that drupal/downloads is not a valid file or directory"
I tied the following file paths too
1.www.mysite.com/drupal/downloads/faq.ods
2.drupal/downloads/faq.ods
3.drupal/faq.ods(after putting faq.ods in the drupal folder.
But still I am getting the same message. Plesae some body help me
It is looking for a path rather than a URL. You should probably aim to find out from your hosting company what the absolute path for your webroot is (e.g. www.mysite.com may actually be on disk as /users/mysite.com/httpdocs) and put in that followed by /drupal/downloads

CakePHP home page - cache not working

In my CakePHP home page, I get the message:
Your cache is NOT working. Please check the settings in APP/config/core.php
I googled for possible solutions, some of which were to uncomment the Cache.check and Cache.disable line. Even then the error isn't resolved.
Also the webserver runs on www-data (exec('whoami');) whereas my home folder is public_html. How do I change www-data to public_html?
Besides, check if you have the original directory structure inside /app/tmp/cache.
Recently I had the same problem, and found out that for some reason my /app/tmp was empty. Redoing the directory structure helped.
Assuming your cache is set to file, make sure your /app/tmp and all the folders inside are world-writable (drwxrwxrwx).

Resources