nephthys/Nouweo_PHP/master/.htaccess - Htaccess File

nephthys/Nouweo_PHP/master/.htaccess

Options +FollowSymlinks
RewriteEngine on

RewriteCond %{HTTP_HOST} ^www.nouweo.com$ 
RewriteRule ^(.*)   http://nouweo.com/$1  [QSA,L,R=301]

# Permaliens (news, profils)
RewriteRule ^([a-zA-Z0-9-]+)/?$ index.php?p=news&act=15&ct=$1 [QSA]
RewriteRule ^([a-zA-Z0-9-]+)/p([0-9]+)/?$ index.php?p=news&act=15&ct=$1&page=$2 [QSA]
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]*)-([0-9]+)/?$ index.php?p=news&act=10&id=$3 [QSA]
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]*)-([0-9]+)/p([0-9]+)/?$ index.php?p=news&act=10&id=$3&page=$4 [QSA]
RewriteRule ^([a-zA-Z0-9-]+)/([a-zA-Z0-9-]*)-([0-9]+)/comment/([0-9]+)/?$ index.php?p=news&act=10&id=$3&id2=$4 [QSA]
RewriteRule ^profile/([a-zA-Z0-9-]*)/?$ index.php?p=profile&id=$1 [QSA]

RewriteRule ^([a-zA-Z]+).html$ index.php?p=$1 [QSA]
RewriteRule ^([a-zA-Z]+)-p([0-9]+).html$ index.php?p=$1&page=$2 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+).html$ index.php?p=$1&act=$2 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-p([0-9]+).html$ index.php?p=$1&act=$2&page=$3 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-([0-9]+).html$ index.php?p=$1&act=$2&id=$3 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+).html$ index.php?p=$1&act=$2&id=$3&id2=$4 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-([0-9]+)-([0-9]+)(-[a-zA-Z0-9-]+).html$ index.php?p=$1&act=$2&id=$3&id2=$4 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-([0-9]+)-p([0-9]+).html$ index.php?p=$1&act=$2&id=$3&page=$4 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-([0-9]+)-p([0-9]+)(-[a-zA-Z0-9-]+).html$ index.php?p=$1&act=$2&id=$3&page=$4 [QSA]
RewriteRule ^([a-zA-Z]+)-([0-9]+)-([0-9]+)(-[a-zA-Z0-9-]+).html$ index.php?p=$1&act=$2&id=$3 [QSA]
RewriteRule ^help-([a-z]+).html$ index.php?p=help&topic=$1 [QSA]

RewriteRule ^robots.txt$ inc/res/robots_file.php [QSA]
RewriteRule ^sitemap.xml$ inc/sitemaps_list.php [QSA]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST

Comments

Apache