كود:
RewriteEngine on
# Always Forced http to https
RewriteCond %{HTTPS} off
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteRule ^/?$ forum.php [R=302,L]
RedirectMatch 301 s(.*).html$ https://dnanir.net/showthread.php?t=$1
RedirectMatch 301 r(.*).html$ https://dnanir.net/forumdisplay.php?f=$1
RedirectMatch 301 sada(.*).html$ https://dnanir.net/member.php?u=$1
#Options +FollowSymLinks
#RewriteEngine on
RewriteRule tags/(.*)/ https://dnanir.net/tags.php?tag=$1 [L,R=301]
RewriteRule tags/(.*) https://dnanir.net/tags.php?tag=$1 [L,R=301]
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
#RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.dnanir\.net
#RewriteRule (.*) https://dnanir.net/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
############################# ERROR Redirects ############################################
#ErrorDocument 400 https://dnanir.net/
#ErrorDocument 401 https://dnanir.net/
#ErrorDocument 402 https://dnanir.net/
#ErrorDocument 403 https://dnanir.net/
#ErrorDocument 404 https://dnanir.net/
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php54” package as the default “PHP” programming language.
<IfModule mime_module>
AddHandler application/x-httpd-ea-php54 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
# BEGIN cPanel-generated php ini directives, do not edit
# Manual editing of this file may result in unexpected behavior.
# To make changes to this file, use the cPanel MultiPHP INI Editor (Home >> Software >> MultiPHP INI Editor)
# For more information, read our documentation (https://go.cpanel.net/EA4ModifyINI)
<IfModule php5_module>
php_flag asp_tags Off
php_flag display_errors Off
php_value max_execution_time 120
php_value max_input_time 180
php_value max_input_vars 1000
php_value memory_limit 2048M
php_value post_max_size 158M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php54"
php_value upload_max_filesize 128M
php_flag zlib.output_compression Off
</IfModule>
<IfModule lsapi_module>
php_flag asp_tags Off
php_flag display_errors Off
php_value max_execution_time 120
php_value max_input_time 180
php_value max_input_vars 1000
php_value memory_limit 2048M
php_value post_max_size 158M
php_value session.gc_maxlifetime 1440
php_value session.save_path "/var/cpanel/php/sessions/ea-php54"
php_value upload_max_filesize 128M
php_flag zlib.output_compression Off
</IfModule>
# END cPanel-generated php ini directives, do not edit
هل يوجد حل