Options -Indexes +SymLinksIfOwnerMatch

# Security: Remove if server response headers contain detailed PHP version info
<IfModule mod_headers.c>
Header unset X-Powered-By
Header unset Server
</IfModule>

RewriteEngine on
RewriteBase /

##RewriteCond %{HTTPS} off
##RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# Wordpress Security: protect from sql injection
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]

# Drupal->Wordpress: RSS feed
RewriteCond %{QUERY_STRING} q=(rss\.xml|atom/feed)
RewriteRule ^(.*)$ /?feed=rss2 [R=301,L]

# Drupal->Wordpress: tags
RewriteRule ^category/cimkek/(.*) tag/$1 [R=301,L]

# Drupal->Wordpress: "-" in tags
RewriteRule ^tag/(.*)-(.*) tag/$1_$2 [R=301,L]

# Drupal->Wordpress: pages
RewriteCond %{QUERY_STRING} ^page=(.+)$
RewriteRule ^(.*)$ $1/page/%1? [R=301,L]

# Drupal->Wordpress: /user shit
##RewriteRule ^(.*)/user/(.*) $1 [R=301,L]

# Drupal->Wordpress
RewriteRule ^6line(.*) sixline$1 [R=301,L]
RewriteRule ^rnr666tv(.*) tag/rnr666tv$1 [R=301,L]
RewriteRule ^about_us(.*) aboutus [R=301]
RewriteRule ^aboutus(.+) aboutus [R=301,L]
RewriteRule ^napi_mottonk(.*) napi_motto$1 [R=301,L]
RewriteRule ^node/(.*) / [R=301,L]
RewriteRule ^(.*).htm(l)?(.*) / [R=301,L]

# Wordpress transparent redirect to /content/
RewriteCond %{HTTP_HOST} ^(www.)?rnr666.hu$
RewriteCond %{REQUEST_URI} !^/content/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /content/$1
RewriteCond %{HTTP_HOST} ^(www.)?rnr666.hu$
RewriteRule ^(/)?$ content/index.php [L]
#RewriteCond %{REQUEST_URI} !^/content/
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{HTTP_HOST} ^(www\.)?rnr666\.hu
#RewriteRule ^(.*)$ /content/$1 [L]

# BEGIN WordPress
# A `BEGIN WordPress` és az `END WordPress` sorok közötti tartalom dinamikusan lett létrehozva, és csak WordPress szűrők módosíthatják. E kettő sor közötti bármilyen kézi módosítás el fog veszni.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
