Código: Selecionar todos
RewriteEngine on
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php index.php index.html index.htm
RewriteEngine on
rewritecond %{http_host} ^afroditep2pshare.org [NC]
rewriterule ^(.*)$ http://www.afroditep2pshare.org/forum/$1 [r=301,NC]
RewriteEngine on
rewritecond %{http_host} ^www.afroditep2pshare.org [NC]
rewriterule ^(.*)$ http://www.afroditep2pshare.org/forum/$1 [r=301,NC]
Código: Selecionar todos
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
DirectoryIndex portal.php index.php index.html index.htm
RewriteEngine on
rewritecond %{http_host} ^afroditep2pshare.org [NC]
rewriterule ^(.*)$ http://www.afroditep2pshare.org/forum/$1 [r=301,NC]
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?afroditep2pshare.org\.org$ [NC]
RewriteCond %{REQUEST_URI} !^/forum/
RewriteRule ^(.*) /forum/$1 [L,R]