View Single Post

  #3 (permalink)  
Old 05-24-2008, 07:20 PM
mumuri mumuri is offline
Junior Member
User
 
Join Date: May 2008
My distro: Debian
Posts: 11
Rep Power: 0
mumuri is on a distinguished road
Default

ok perhaps i didn't understand everything (i m not using this tips for a word pres

here is a test, i ve set up an 404 pages with
Code:
ErrorDocument 404 /mypage.php
in it

now i create a dummy url like this

http://shopog.com/seo-test-error-document.html

Code:
 curl http://shopog.com/seo-test-error-document.html -I
HTTP/1.1 404 Not Found
Date: Sat, 24 May 2008 12:44:44 GMT
Server: Apache
X-Powered-By: PHP/4.4.8
Vary: Host
Content-Type: text/html

which is quite logical:
wrong url ---> 404 error --> redirection to mypage.php --> send page to browser

So if i look at your first test

curl -I ht

tp://www.cyberciti.biz/tips/lighttpd-and-wordpress-setup-clean-seo-friendly-urls.html
what does it mean ?

the only solution i see to do that is that the header is changed in the php file

wrong url ---> 404 error --> redirection to mypage.php --> 200 ok ---> send page to browser

where 200 ok is added directly in the php file

will test that

thanks
Reply With Quote