Mobile app version of vmapp.org
Login or Join
Deb1703797

: .htaccess mask redirect subdirectory to another subdirectory The URL of a page in my site is: http:/mysite.com/one/two/three/four I want to mask access this page via: http:/mysite.com/fast/quick

@Deb1703797

Posted in: #Htaccess #Redirects #Subdirectory

The URL of a page in my site is:

http:/mysite.com/one/two/three/four


I want to mask access this page via:

http:/mysite.com/fast/quick


The problem is within this page there are subfolders and, let's say, when I define a .js file in the index.html header:

<script type="text/javascript" src="lib/mylib.js"></script>


It says file not found because it's looking for it in /fast/quick.

==> Remember the redirection must be masked, not direct.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb1703797

1 Comments

Sorted by latest first Latest Oldest Best

 

@Smith883

Have you tried using the full URL?

<script type="text/javascript" src="http:/mysite.com/lib/mylib.js"></script>


or even

<script type="text/javascript" src="/lib/mylib.js"></script>


One of the best ways to find your own answer is to experiment.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme