Untitled diff

Created Diff never expires
15 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
82 lines
15 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
82 lines




# Lines That should already be in your .htacess
# Lines That should already be in your .htacess
<Files "config.php">
<Files "config.php">
Order Allow,Deny
Order Allow,Deny
Deny from All
Deny from All
</Files>
</Files>
<Files "common.php">
<Files "common.php">
Order Allow,Deny
Order Allow,Deny
Deny from All
Deny from All
</Files>
</Files>


# You may need to un-comment the following lines
# You may need to un-comment the following lines
# Options +FollowSymlinks
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
RewriteEngine On
# Uncomment the statement below if you want to make use of
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
# This could be required if you are for example using PHP via Apache CGI.
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# REWRITE BASE
# REWRITE BASE
RewriteBase /
RewriteBase /
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# HERE IS A GOOD PLACE TO FORCE CANONICAL DOMAIN
# RewriteCond %{HTTP_HOST} !^myforum\.com$ [NC]
# RewriteCond %{HTTP_HOST} !^myforum\.com$ [NC]
# RewriteRule ^(.*)$ http://myforum.com/$1 [QSA,L,R=301]
# RewriteRule ^(.*)$ http://myforum.com/$1 [QSA,L,R=301]


# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
# DO NOT GO FURTHER IF THE REQUESTED FILE / DIR DOES EXISTS
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule . - [L]
#####################################################
#####################################################
# PHPBB SEO REWRITE RULES ALL MODES
# PHPBB SEO REWRITE RULES ALL MODES
#####################################################
#####################################################
# AUTHOR : dcz www.phpbb-seo.com
# AUTHOR : dcz www.phpbb-seo.com
# STARTED : 01/2006
# STARTED : 01/2006
#################################
#################################
# FORUMS PAGES
# FORUMS PAGES
###############
###############
# FORUM INDEX
# FORUM INDEX
RewriteRule ^inicio\.html$ /index.php [QSA,L,NC]
RewriteRule ^inicio\.html$ /index.php [QSA,L,NC,R=301]
# FORUM ALL MODES
# FORUM ALL MODES
RewriteRule ^(foro|[a-z0-9_-]*-f)([0-9]+)/?(pagina([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 [QSA,L,NC]
RewriteRule ^(foro|[a-z0-9_-]*-f)([0-9]+)/?(pagina([0-9]+)\.html)?$ /viewforum.php?f=$2&start=$4 [QSA,L,NC,R=301]
# TOPIC WITH VIRTUAL FOLDER ALL MODES
# TOPIC WITH VIRTUAL FOLDER ALL MODES
RewriteRule ^(foro|[a-z0-9_-]*-f)([0-9]+)/(tema|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC]
RewriteRule ^(foro|[a-z0-9_-]*-f)([0-9]+)/(tema|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?f=$2&t=$4&start=$6 [QSA,L,NC,R=301]
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
# TOPIC WITHOUT FORUM ID & DELIM ALL MODES
RewriteRule ^([a-z0-9_-]*)/?(tema|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC]
RewriteRule ^([a-z0-9_-]*)/?(tema|[a-z0-9_-]*-t)([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?forum_uri=$1&t=$3&start=$5 [QSA,L,NC,R=301]
# PHPBB FILES ALL MODES
# PHPBB FILES ALL MODES
RewriteRule ^archivo/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC]
RewriteRule ^archivo/[a-z0-9_-]+/(thumb/)?([0-9]+)$ /download/file.php?id=$2&t=$1 [QSA,L,NC,R=301]
# PROFILES THROUGH USERNAME
# PROFILES THROUGH USERNAME
RewriteRule ^usuario/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC]
RewriteRule ^usuario/([^/]+)/?$ /memberlist.php?mode=viewprofile&un=$1 [QSA,L,NC,R=301]
# USER MESSAGES THROUGH USERNAME
# USER MESSAGES THROUGH USERNAME
RewriteRule ^usuario/([^/]+)/(topics|posts)/?(pagina([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [QSA,L,NC]
RewriteRule ^usuario/([^/]+)/(topics|posts)/?(pagina([0-9]+)\.html)?$ /search.php?author=$1&sr=$2&start=$4 [QSA,L,NC,R=301]
# GROUPS ALL MODES
# GROUPS ALL MODES
RewriteRule ^(grupo|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC]
RewriteRule ^(grupo|[a-z0-9_-]*-g)([0-9]+)(-([0-9]+))?\.html$ /memberlist.php?mode=group&g=$2&start=$4 [QSA,L,NC,R=301]
# POST
# POST
RewriteRule ^mensaje([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC]
RewriteRule ^mensaje([0-9]+)\.html$ /viewtopic.php?p=$1 [QSA,L,NC,R=301]
# ACTIVE TOPICS
# ACTIVE TOPICS
RewriteRule ^temas-activos(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC]
RewriteRule ^temas-activos(-([0-9]+))?\.html$ /search.php?search_id=active_topics&start=$2&sr=topics [QSA,L,NC,R=301]
# UNANSWERED TOPICS
# UNANSWERED TOPICS
RewriteRule ^temas-sin-respuesta(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC]
RewriteRule ^temas-sin-respuesta(-([0-9]+))?\.html$ /search.php?search_id=unanswered&start=$2&sr=topics [QSA,L,NC,R=301]
# NEW POSTS
# NEW POSTS
RewriteRule ^nuevos-mensajes(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC]
RewriteRule ^nuevos-mensajes(-([0-9]+))?\.html$ /search.php?search_id=newposts&start=$2&sr=topics [QSA,L,NC,R=301]
# UNREAD POSTS
# UNREAD POSTS
RewriteRule ^mensajes-no-leidos(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 [QSA,L,NC]
RewriteRule ^mensajes-no-leidos(-([0-9]+))?\.html$ /search.php?search_id=unreadposts&start=$2 [QSA,L,NC,R=301]
# THE TEAM
# THE TEAM
RewriteRule ^equipo\.html$ /memberlist.php?mode=leaders [QSA,L,NC]
RewriteRule ^equipo\.html$ /memberlist.php?mode=leaders [QSA,L,NC,R=301]
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES


# FORUM WITHOUT ID & DELIM ALL MODES
# FORUM WITHOUT ID & DELIM ALL MODES
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
# THESE THREE LINES MUST BE LOCATED AT THE END OF YOUR HTACCESS TO WORK PROPERLY
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/?(pagina([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC]
RewriteRule ^([a-z0-9_-]+)/?(pagina([0-9]+)\.html)?$ /viewforum.php?forum_uri=$1&start=$3 [QSA,L,NC,R=301]
# FIX RELATIVE PATHS : FILES
# FIX RELATIVE PATHS : FILES
RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /$1 [QSA,L,NC,R=301]
RewriteRule ^.+/(style\.php|ucp\.php|mcp\.php|faq\.php|download/file.php)$ /$1 [QSA,L,NC,R=301]
# FIX RELATIVE PATHS : IMAGES
# FIX RELATIVE PATHS : IMAGES
RewriteRule ^.+/(styles/.*|images/.*)/$ /$1 [QSA,L,NC,R=301]
RewriteRule ^.+/(styles/.*|images/.*)/$ /$1 [QSA,L,NC,R=301]
# END PHPBB PAGES
# END PHPBB PAGES
#####################################################
#####################################################