CYBERAXIS
Please Login or Register

Knowledgebase

Fix for Addon domain's Trailing slash

Scenario

Issue - masterdomain.com
Addon domain - slavedomain.com

Reference a directory within slavedomain.com e.g. slavedomain.com/dir and the url in browser is slavedomain.com.masterdomain.com/dir

Solution

Create .htaccess file located in your document root of the Addon domain directory.

Options +FollowSymLinks

RewriteEngine On
# No trailing slash in the URI
RewriteCond %{REQUEST_URI} !/$
# No trailing slash BUT it's a directory
RewriteCond %{REQUEST_FILENAME} -d
# Make an external redirection adding the trailing slash
RewriteRule . http://%{HTTP_HOST}%{REQUEST_URI}/ [R,L]

When you enter http://www.slavedomain.com/abc now, it will be redirected to http://www.slavedomain.com/abc/



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read

Language:

Quick Navigation

Client Login

Email

Password

Remember Me

Search