same htaccess file won't allow me to remove trailing slash

Status
Not open for further replies.

helloyou6

New Member
Messages
3
Reaction score
0
Points
1
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"
 

caftpx10

Well-Known Member
Messages
1,534
Reaction score
114
Points
63
That is odd. By default, it should not be doing the directory slash (in the document root). At least that is not the case for me.

Which browser are you using and what server is your site on?
 

helloyou6

New Member
Messages
3
Reaction score
0
Points
1
I'm going to go ahead and mark this solve and say it's a local browser cache thingy.

There's no trailing slash when I use Saucelab browsers.
 
Status
Not open for further replies.
Top