I got rid of one of my domains and put another one in its place (.xyz extension)
I transfered the same htacess file but modified it to go with my new domain.
Everything works like it should except for the trailing slash which won't go away (domain.xyz/)
My previous domain had a different domain extension
I'm not sure if this is x10hosting thing or what?
DirectorySlash Off
RewriteBase /
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain\.xyz$ [NC]
RewriteRule ^(.*)$ http://domain.xyz/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.domain.xyz/$1 [R=301,L]
ErrorDocument 403 /index.html
ErrorDocument 404 /index.html
ErrorDocument 500 /index.html
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"
I transfered the same htacess file but modified it to go with my new domain.
Everything works like it should except for the trailing slash which won't go away (domain.xyz/)
My previous domain had a different domain extension
I'm not sure if this is x10hosting thing or what?
DirectorySlash Off
RewriteBase /
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.domain\.xyz$ [NC]
RewriteRule ^(.*)$ http://domain.xyz/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^.*/index.html
RewriteRule ^(.*)index.html$ http://www.domain.xyz/$1 [R=301,L]
ErrorDocument 403 /index.html
ErrorDocument 404 /index.html
ErrorDocument 500 /index.html
Header set Cache-Control "max-age=0, private, no-cache, no-store, must-revalidate"