HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ns3133907 6.8.0-86-generic #87-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 18:03:36 UTC 2025 x86_64
User: cssnetorguk (1024)
PHP: 8.2.28
Disabled: NONE
Upload Files
File: //old_home_backup/themewsdentalstudio.co.uk/public_html/.htaccess
# invoke rewrite engine
RewriteEngine On
RewriteBase /

Options -Indexes
<IfModule mod_negotiation.c>
	Options -MultiViews
</IfModule>

# Redirect to www
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

# Add a trailing slash (/) to a URL
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !\.[A-Za-z0-9]*$
RewriteRule .*[^/]$ %{REQUEST_URI}/ [L,R=301]

# Create pretty URLs
RewriteRule ^([^/]+)/$ $1.html [S=6]
RewriteRule ^([^/]+)/([^/]+)/$ $1/$2.html [S=5]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3.html [S=4]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4.html [S=3]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5.html[S=2]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6.html [S=1]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/([^/]+)/$ $1/$2/$3/$4/$5/$6/$7.html

# Specific redirections
RewriteRule ^index.html$ / [L,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^index\.html$ index_html/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^[\/]?$ _gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^s\=\%7Bsearch_term_string\%7D$
RewriteRule ^[\/]?$ s__search_term_string_/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^case\-studies\.html$ case-studies-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^general\-dental\-fees\.html$ general-dental-fees-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^general\-dentistry\.html$ general-dentistry-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^implantology\.html$ implantology-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^mews\-beauty\-price\.html$ mews-beauty-price-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^oral\-surgeon\-fees\.html$ oral-surgeon-fees-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^prosthodontist\-fees\.html$ prosthodontist-fees-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^view\-the\-practice\.html$ view-the-practice-html/gtnjs_1/? [L,R=301]
RewriteCond %{QUERY_STRING} ^gtnjs\=1$
RewriteRule ^we\-recommend\.html$ we-recommend-html/gtnjs_1/? [L,R=301]

# Redirect all extensions to html
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.shtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.phtml$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.htm$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.php$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.aspx$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.asp$ $1.html [L,NC,R=301]
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^(.*)\.jsp$ $1.html [L,NC,R=301]
# End: Redirect all extensions to html