|
Server : Apache/2.4.62 System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64 User : www ( 80) PHP Version : 8.3.8 Disable Function : NONE Directory : /domains/tankfarmvendor1/ |
Upload File : |
# invoke rewrite engine
RewriteEngine On
RewriteBase /scraping/files/live/tankfarmvendor.com_steve_stva.net_xsr2w2wfu7j
#Redirect 400,401,403,404,500 to main website
ErrorDocument 400 http://tankfarmvendor.com
ErrorDocument 401 http://tankfarmvendor.com
ErrorDocument 403 http://tankfarmvendor.com
ErrorDocument 404 http://tankfarmvendor.com
ErrorDocument 500 http://tankfarmvendor.com
# redirect all extension to html
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.shtml$ $1.html [nc]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.phtml$ $1.html [nc]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.htm$ $1.html [nc]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.php$ $1.html [nc]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.aspx$ $1.html [nc]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.asp$ $1.html [nc]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jsp$ $1.html [nc]
# Add a trailing slash (/) to a URL, if the URL did not have a trailing slash before
RewriteRule ^([^.]*[^/])$ /$1/ [L,R=301]
RewriteRule ^index.html$ /scraping/files/live/tankfarmvendor.com_steve_stva.net_xsr2w2wfu7j/ [L,R=301]