angelaparicio/contenidoextra.es/master/.htaccess - Htaccess File

angelaparicio/contenidoextra.es/master/.htaccess

RewriteEngine On

# Quitar el www y evitar problemas con las cookies
RewriteCond %{HTTP_HOST} ^www.contenidoextra.es$ [NC]  
RewriteRule ^(.*)$ http://contenidoextra.es/$1 [R=301,QSA,L] 

# Propio del meneame
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^c/(.+)$ /comment.php/$1  [L,NS]
RewriteRule ^notame$ /sneakme/index.php [L,NS]
RewriteRule ^notame/$ /sneakme/index.php [L,NS]
RewriteRule ^notame/(.+) /sneakme/index.php?id=$1 [L,NS]
RewriteRule ^story/0(.+)$ /story.php?id=$1 [L,NS]
RewriteRule ^story/(.+)$ /story.php/$1 [L,NS]
RewriteRule ^user/(.+)$ /user.php/$1 [L,NS]
RewriteRule ^search(/.*)$ /search.php$1 [L,NS,NE,PT]

#SEO
RewriteRule ^criticas-de-cine/$ /?meta=criticas [L,NS]
RewriteRule ^noticias-de-cine/$ /?meta=noticias [L,NS]

ErrorDocument 404 /ooops.php

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME

Comments

Apache