removing forward slash in .htaccess

Posted by user1083644 on Stack Overflow See other posts from Stack Overflow or by user1083644
Published on 2012-11-10T05:41:01Z Indexed on 2012/11/11 5:01 UTC
Read the original article Hit count: 107

Filed under:
|

I am using Jobbersbase for my online job portal. In which i have given link to my main webpage page like this http://www.mydomain.com/aboutus.html, but its not working because the link is taking '/' at the end http://www.mydomain.com/aboutus.html/

I tried adding RewriteCond %{REQUEST_FILENAME}\.html -f in .htaccess , if i add that other links doesnt work which has / for example http://www.mydomain.com/jobs/

Now my .htaccess looks like this

# AddType x-mapp-php5 .php
# AddHandler x-mapp-php5 .php

    RewriteEngine On
RewriteCond %{REQUEST_URI} .*/$
RewriteRule (.*)/$ $1



ErrorDocument 404 /page-unavailable/

<files ~ "\.tpl$">
order deny,allow
allow from none
deny from all
</files>

Someone please suggest me how to do it thanks

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess