html - Php htaccess 404 Not Found Page -


i have website , link structure this:

site.com/asdsadsad.html -> page.php site.com/blog/ -> blog homepage site.com/blog/aksmdlksamdlms.html -> post page 

and index, contact page , on.

all want create htaccess file , check pages doesn't exit.

but don't know how check pages if exist or not.

for example, site.com/blog/simple-post.html -> page exists, can check it, can not check page site.com/blog/opepo/klamnsdksa.

order allow,deny deny 255.0.0.0 deny 123.45.6. allow 

the above lines tell apache web server block visitors ip address '255.0.0.0' , '123.45.6.', note second ip address missing fourth set of digits, means ip address matches firth 3 set of digits blocked, e.g. '123.45.6.10' , '123.45.6.255' blocked.

to set-up blocking of visitors except yourself, create .htaccess file following main instructions , guidance includes following text:

order allow,deny allow 255.0.0.0 deny 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -