Commit cbff02dc authored by Corentin Bettiol's avatar Corentin Bettiol 💻

blog

parent e9f03663
<?php
function writeBlogPage(){
/*
if(!empty($_GET['page']))
writeBlogArticles($_GET['page'];
else if(!empty($_GET['title']))
writeBlogArticle($_GET['title']);
else
writeBlogArticles(0);
*/
}
\ No newline at end of file
<?php
require_once("functionWriteMenu.php");
require_once("functionWriteBlogPage.php");
require_once("functionGetPageName.php");
$pageName = getPageName();
\ No newline at end of file
<?php
writeBlogPage();
?>
<article>
<h3><a href="/article/premier-post-du-nouveau-blog">Premier post du nouveau blog</a></h3>
<p class="postInfos">
......
RewriteEngine On
RewriteRule /(about|changelog|blog|rss|projects|contact|login) /index.php?action=$1
RewriteRule /article/([a-zA-Z0-9\-]*)$ /index.php?action=article&title=$1
\ No newline at end of file
RewriteRule /article/([a-zA-Z0-9\-]*)$ /index.php?action=blog&title=$1
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment