HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   Alias Domains creating Trailing Slash (http://www.howtoforge.com/forums/showthread.php?t=59759)

Vamiris 1st December 2012 11:24

Alias Domains creating Trailing Slash
 
Hello,

using Alias Domains, ISP Config creates vhosts like this:

RewriteRule ^/(.*)$ http://www.domain.de/folder/file.html/$1
RewriteCond %{HTTP_HOST} ^www.aliasdomain.de$ [NC]


How can I get rid off of the trailing slash at the end?

In the Backend, I use an Alias Domain, Redirect no flag to http://www.domain.de/folder/file.html

Auto Subdomain is www

Kind Regards
Christian

till 3rd December 2012 09:55

The redirect feature is for redirects to directries only, so a slash is added automatically. This is required for security.

If you want to add redirects to files, then add the redierct rules into a.htaccess file of the site or in the apache directives field of the website.


All times are GMT +2. The time now is 07:59.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.