April 14, 201511 yr I wanna remove the end slashes like.. www.trevorsiu.com/email www.trevorsiu.com/email/ I literally have this in my .htaccess file: RewriteRule ^(.*)\/(\?.*)?$ $1$2 [R=301,L] Have I put the code wrong or something? Edited April 14, 201511 yr by Sneijder
April 14, 201511 yr Try this one: RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)/$ /$1 [L,R=301]
April 15, 201511 yr Author Nah nothing happens.. I find it strange that every guide online does nothing.. I've tried every example online.. no avail.
April 15, 201511 yr Author It's definitely linux (think I remember when buying the hosting) and I have a .htaccess file etc.. because I can adjust the cache control in the panel etc.. If that's the case then mod rewrite has to enabled though? How can it have a .htaccess file if I can't put anything I want it in?
April 15, 201511 yr Author Ok.. I think I understand.. it's in the root of the root ATM because I have two domains etc. (Edit) Nah still doesn't work.. This is what's in the .htaccess file by default.. # Begin cache control # ExpiresActive on ExpiresActive off <FilesMatch ".*"> Header unset Cache-Control Header unset Expires Header unset Last-Modified FileETag None Header unset Pragma </FilesMatch> # End cache control # I put in the examples in below but never work. Also I can't PM any of you to give you my username/password as a suggestion to do it for me etc.. Would any of you do it for for me if I give you the information? Edited April 15, 201511 yr by Sneijder
April 16, 201511 yr Are you using a CMS or platform like that? Often they have a setting within admin - permalinks or something like that.
April 16, 201511 yr Author No but it could be something similar.. In the panel of options etc.. It's just a standard webspace from www.domain.com Any ideas? I'm willing to give anyone my username and password to help me out. Kmoan
April 16, 201511 yr Author Ok.. figured out it's probably because it's a shared hosting and not dedicated.. it won't allow it. I was thinking of getting a dedicated server for another project I was thinking about.. already bought the domain for it etc.
April 17, 201511 yr Ok.. figured out it's probably because it's a shared hosting and not dedicated.. it won't allow it. I was thinking of getting a dedicated server for another project I was thinking about.. already bought the domain for it etc. lol not likely
Create an account or sign in to comment