Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../var/softacul.../phpwcms
File: .htaccess
# Avoid accessing typical project specific IDE settings
[0] Fix | Delete
RedirectMatch 404 /\.git
[1] Fix | Delete
RedirectMatch 404 /\.idea
[2] Fix | Delete
RedirectMatch 404 /\.nova
[3] Fix | Delete
RedirectMatch 404 /\.vscode
[4] Fix | Delete
RedirectMatch 404 /\.vs
[5] Fix | Delete
[6] Fix | Delete
# PHP: These settings are recommend - check phpinfo() before try these
[7] Fix | Delete
# register_globals ON
[8] Fix | Delete
# php_flag magic_quotes_gpc Off
[9] Fix | Delete
# php_flag magic_quotes_runtime Off
[10] Fix | Delete
# php_flag register_globals Off
[11] Fix | Delete
[12] Fix | Delete
#Sometimes necessary to add special types
[13] Fix | Delete
# AddType application/x-javascript .js
[14] Fix | Delete
# AddType text/css .css
[15] Fix | Delete
# AddType video/ogg .ogv
[16] Fix | Delete
# AddType video/ogg .ogg
[17] Fix | Delete
# AddType video/mp4 .mp4
[18] Fix | Delete
# AddType video/x-m4v .m4v
[19] Fix | Delete
# AddType video/webm .webm
[20] Fix | Delete
# AddType image/svg+xml .svg
[21] Fix | Delete
# AddType application/font-woff .woff
[22] Fix | Delete
# AddType application/vnd.ms-fontobject .eot
[23] Fix | Delete
# AddType application/x-font-ttf .ttf
[24] Fix | Delete
# AddType application/x-font-opentype .otf
[25] Fix | Delete
[26] Fix | Delete
# Options:
[27] Fix | Delete
# Options +FollowSymlinks
[28] Fix | Delete
# AcceptPathInfo On
[29] Fix | Delete
[30] Fix | Delete
# All 404 error should link to phpwcms then
[31] Fix | Delete
# it is easy to define internal routing/redirection
[32] Fix | Delete
# ErrorDocument 404 /index.php?r404
[33] Fix | Delete
# Installed in Subfolder www.example.com/subfolder/
[34] Fix | Delete
# ErrorDocument 404 /subfolder/index.php?r404
[35] Fix | Delete
[36] Fix | Delete
# Rewrite:
[37] Fix | Delete
<IfModule mod_rewrite.c>
[38] Fix | Delete
[39] Fix | Delete
RewriteEngine On
[40] Fix | Delete
[41] Fix | Delete
# Force everything to www. and keep or force SSL status too
[42] Fix | Delete
#RewriteCond %{HTTP_HOST} !^$
[43] Fix | Delete
#RewriteCond %{HTTPS} off [OR]
[44] Fix | Delete
#RewriteCond %{HTTP_HOST} !^www\. [NC]
[45] Fix | Delete
#RewriteCond %{HTTPS}s ^on(s)|
[46] Fix | Delete
#RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
[47] Fix | Delete
#RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
[48] Fix | Delete
[49] Fix | Delete
# Some more simple redirect example
[50] Fix | Delete
#RewriteCond %{HTTP_HOST} ^example.com [OR]
[51] Fix | Delete
#RewriteCond %{HTTP_HOST} ^example-two.com [OR]
[52] Fix | Delete
#RewriteCond %{HTTP_HOST} ^www.example-two.de [OR]
[53] Fix | Delete
#RewriteCond %{SERVER_PORT} 80
[54] Fix | Delete
#RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
[55] Fix | Delete
[56] Fix | Delete
DirectoryIndex index.html index.php index.phtml
[57] Fix | Delete
[58] Fix | Delete
# Redirect /en and /en/ to english home
[59] Fix | Delete
#RewriteRule ^(en|de)(/{0,1})$ ./index.php?$1/index [L,QSA]
[60] Fix | Delete
[61] Fix | Delete
# Use RewriteBase - always start in Document Root
[62] Fix | Delete
#RewriteBase /
[63] Fix | Delete
# If installed in a subfolder
[64] Fix | Delete
RewriteBase [[relativeurl]]/
[65] Fix | Delete
[66] Fix | Delete
# Resized image /img/cmsimage.php/… -> /im/…
[67] Fix | Delete
RewriteRule ^im\/(.+?)$ ./img/cmsimage.php?$1 [L]
[68] Fix | Delete
[69] Fix | Delete
# File download /dl/… -> /download.php?…
[70] Fix | Delete
RewriteRule ^dl\/([a-fA-Z0-9]+)\/(.*?)$ ./download.php?f=$1&%{QUERY_STRING} [L]
[71] Fix | Delete
[72] Fix | Delete
# Stop rewrite processing, if we are in any known directory
[73] Fix | Delete
# NOTE: Add your additional local storages here
[74] Fix | Delete
RewriteRule ^(?:template/|content/|picture/|uploads/|include/|filearchive/|img/) - [L]
[75] Fix | Delete
[76] Fix | Delete
# Ignore all files and folders that exists
[77] Fix | Delete
RewriteCond %{REQUEST_FILENAME} -f [OR]
[78] Fix | Delete
RewriteCond %{REQUEST_FILENAME} -d
[79] Fix | Delete
RewriteRule ^(.+) - [PT,L]
[80] Fix | Delete
[81] Fix | Delete
# In case of config setting `$phpwcms['rewrite_ext']='.html'` -> /alias.html (Default)
[82] Fix | Delete
RewriteRule ^(.+)\.[p]{0,1}html$ ./index.php?$1&%{QUERY_STRING} [L]
[83] Fix | Delete
RewriteRule ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)\.[p]{0,1}html$ ./index.php?id=$1,$2,$3,$4,$5,$6&%{QUERY_STRING} [L]
[84] Fix | Delete
[85] Fix | Delete
# Rewrite anything else and link it against phpwcms
[86] Fix | Delete
# Check redirect settings under admin in the backend
[87] Fix | Delete
RewriteRule ^(.+)/?$ ./index.php?$1&%{QUERY_STRING}
[88] Fix | Delete
[89] Fix | Delete
</IfModule>
[90] Fix | Delete
[91] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function