Smart 404 Redirection

Salaam

I am working on smartly redirecting users to the right page if the wrong URL is entered.

Currently this only works if the entered url has capitals, whilst the correct one does not.

Inshallah I will improve this soon.

When this is ready I will be able to move the whole site to php, as the .htm pages should automatically be redirected to .php pages.

If anyone has a ready made script to change htm to php let me know.

Alternatively if you have any other tips, do not hesitate to contact me (either here or by email).

Wasalaam

Just an update:

The 404 script is now mostly complete.

It will first remove any capitalisation, and spaces from the start and end.
swap it with php. If that does not work, it will show regular 404 error page.

TODO:

check wether url has any spaces inside it, and remove if necessary.

Apart from that, this script is ready, and should remove most broken links automagically.

"For too long, we have been a passively tolerant society, saying to our citizens 'as long as you obey the law, we will leave you alone'" - David Cameron, UK Prime Minister. 13 May 2015.

Well this seems to be the only thing that broke with the server move...

I will try to fix it during the weekend.

"For too long, we have been a passively tolerant society, saying to our citizens 'as long as you obey the law, we will leave you alone'" - David Cameron, UK Prime Minister. 13 May 2015.