You will need to rewrite your URLs so something directs to index. Php? Q=/something the thing is your web server usually throws a 404 by default if the file / directory cannot be found and there are no RewriteRules associated with it, even if you can parse the URL from the error page and find the information you need.
You will need to rewrite your URLs so /something directs to index. Php? Q=/something, the thing is your web server usually throws a 404 by default if the file / directory cannot be found and there are no RewriteRules associated with it, even if you can parse the URL from the error page and find the information you need.Is there a valid reason why you can't use .
Htaccess? I would strongly suggest you use it if you can. Not least because at the moment a 404 will mean Google will not index your page.
This article will help you.
You just can't avoid "touching" . Htaccess, at least for rewriting all requests to single file ( or defining default 404 file ). You are using Apache, not PHP for the server, right?
Take Kohana 3 Framework for example ( and most other frameworks ), all requests are rewritten to index. Php file, which then handles the routes for the request. RewriteRule .
* index. Php L Code below will handle everything that responds with a 404 and redirect it. ErrorDocument 404 /somefile.
Php In the somefile. Php you can then check if referer is 'local' ( $_SERVER'HTTP_REFERER' ) and which query string it was about, responding with whatever you want.
You could use mod_rewrite for that specific folder, or you could use your own custom 404 page (read this article).
There is no folder as such – Jean Apr 6 '10 at 8:14.
This is something that you need to configure on the webserver, in a . Htaccess file. Take a look at the syntax for the redirect or rewrite.It isn't possible to do this in PHP alone as it is the webserver which processes the URL request.
IIRC, setting up custom 404 (and other web server errors) are part of your webserver environment.
You can't avoid a . Htaccess redirect unless you change your apache (or other webservers) configuration to redirect your 404 errors to your own *. Php file instead of the default error message.
You have to setup a php file, such as 404. Php as your 404 error handler file. After doing this have code in 404.
Php that looks something like this: if (stristr($_SERVER"REQUEST URI","HereWeGo") { //add handling code here }.
Assuming any radom for HereWeGo – Jean Apr 6 '10 at 8:15.
On your destination page simply call-- header('HTTP/1.0 200 OK'); --to override the default 404 status code.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.