php Programming Glossary: blog.php
Create blog post links similar to a folder structure http://stackoverflow.com/questions/18499398/create-blog-post-links-similar-to-a-folder-structure from one file for example RewriteRule ^ ^ 0 9 0 9 0 9 ^ blog.php category 1 date 2 3 4 title 5 L Basically the above would break.. down the URL path and internally redirect it to your file blog.php with the proper parameters so using your URL sample it would.. your URL sample it would redirect to http www.mysite.com blog.php category health date 2013 08 25 title some random title However..
SEO Friendly URL http://stackoverflow.com/questions/6002203/seo-friendly-url mod_rewrite.c RewriteEngine on RewriteRule ^blog 0 9 . blog.php post 1 L IfModule This means when you go to blog 10 any old.. text behind the scenes it is identical to if you visited blog.php post 10 . The 0 9 bit is called a regular expression or regex..
Message: Undefined variable: data http://stackoverflow.com/questions/7905403/message-undefined-variable-data Notice Message Undefined variable data Filename views blog.php Line Number 1 I've been trying to figure it out for almost an..
|