order allow,deny
allow from all
Options +SymLinksIfOwnerMatch -MultiViews
<IfModule mod_rewrite.c>
RewriteEngine On
AddType image/svg+xml .svg .svgz
AddEncoding gzip svgz
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it RewriteBase /subdomain1/subdomain2
RewriteBase /
#If you wish to use a custom 404 page, place a file named 404.php in your website's root and uncomment the line below.
#If your website is installed in a subfolder, change the line below to reflect the path to the subfolder.
#e.g. for http://www.example.com/subdomain1/subdomain2/ make it ErrorDocument 404 /subdomain1/subdomain2/404.php
#ErrorDocument 404 /404.php
#If your site begins with 'www', uncomment the following two lines
#RewriteCond %{HTTP_HOST} !^www\.
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
#DO NOT EDIT BELOW THIS
RewriteRule ^index.php$ "" [R=301,L,QSA]
RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule . - [L]
#sitemap.php
RewriteRule ^sitemap$ "$0/" [R=301,L,QSA]
RewriteRule ^sitemap/$ sitemap.php [L,QSA]
RewriteRule ^sitemap/.*?([^\.\/]*)\.html$ sitemap.php?pname=$1 [L,QSA]
RewriteRule ^sitemap/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ sitemap.php?d=$1$2$3 [L,QSA]
RewriteRule ^sitemap/[^\.]*?([^/\.]*)/$ sitemap.php?fname=$1 [L,QSA]
RewriteRule ^sitemap/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#services.php
RewriteRule ^services$ "$0/" [R=301,L,QSA]
RewriteRule ^services/$ services.php [L,QSA]
RewriteRule ^services/.*?([^\.\/]*)\.html$ services.php?pname=$1 [L,QSA]
RewriteRule ^services/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ services.php?d=$1$2$3 [L,QSA]
RewriteRule ^services/[^\.]*?([^/\.]*)/$ services.php?fname=$1 [L,QSA]
RewriteRule ^services/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#laptop-repair-lincoln.php
RewriteRule ^laptop-repair-lincoln$ "$0/" [R=301,L,QSA]
RewriteRule ^laptop-repair-lincoln/$ laptop-repair-lincoln.php [L,QSA]
RewriteRule ^laptop-repair-lincoln/.*?([^\.\/]*)\.html$ laptop-repair-lincoln.php?pname=$1 [L,QSA]
RewriteRule ^laptop-repair-lincoln/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ laptop-repair-lincoln.php?d=$1$2$3 [L,QSA]
RewriteRule ^laptop-repair-lincoln/[^\.]*?([^/\.]*)/$ laptop-repair-lincoln.php?fname=$1 [L,QSA]
RewriteRule ^laptop-repair-lincoln/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#contact.php
RewriteRule ^contact$ "$0/" [R=301,L,QSA]
RewriteRule ^contact/$ contact.php [L,QSA]
RewriteRule ^contact/.*?([^\.\/]*)\.html$ contact.php?pname=$1 [L,QSA]
RewriteRule ^contact/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ contact.php?d=$1$2$3 [L,QSA]
RewriteRule ^contact/[^\.]*?([^/\.]*)/$ contact.php?fname=$1 [L,QSA]
RewriteRule ^contact/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#computer-repair-lincoln.php
RewriteRule ^computer-repair-lincoln$ "$0/" [R=301,L,QSA]
RewriteRule ^computer-repair-lincoln/$ computer-repair-lincoln.php [L,QSA]
RewriteRule ^computer-repair-lincoln/.*?([^\.\/]*)\.html$ computer-repair-lincoln.php?pname=$1 [L,QSA]
RewriteRule ^computer-repair-lincoln/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ computer-repair-lincoln.php?d=$1$2$3 [L,QSA]
RewriteRule ^computer-repair-lincoln/[^\.]*?([^/\.]*)/$ computer-repair-lincoln.php?fname=$1 [L,QSA]
RewriteRule ^computer-repair-lincoln/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#blog.php
RewriteRule ^blog$ "$0/" [R=301,L,QSA]
RewriteRule ^blog/$ blog.php [L,QSA]
RewriteRule ^blog/.*?([^\.\/]*)\.html$ blog.php?pname=$1 [L,QSA]
RewriteRule ^blog/([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ blog.php?d=$1$2$3 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)/$ blog.php?fname=$1 [L,QSA]
RewriteRule ^blog/[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
#index.php
RewriteRule ^.*?([^\.\/]*)\.html$ ?pname=$1 [L,QSA]
RewriteRule ^([1-2]\d{3})/(?:(0[1-9]|1[0-2])/(?:(0[1-9]|1[0-9]|2[0-9]|3[0-1])/)?)?$ ?d=$1$2$3 [L,QSA]
RewriteRule ^[^\.]*?([^/\.]*)/$ ?fname=$1 [L,QSA]
RewriteRule ^\w[^\.]*?([^/\.]*)$ "$0/" [R=301,L,QSA]
</IfModule>