Created
April 12, 2020 15:31
-
-
Save rashanjyot/9649b9f28fade08500a33f502beea612 to your computer and use it in GitHub Desktop.
How to show content of subdirectory, even if url is of root directory
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsapi_phpini /home/shilurss/public_html/php.ini | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://xyz.com/$1 [R,L] | |
// suppose the file is located in public_html/abc/index.html | |
now currently, xyz.com/abc/ loads the file | |
I want the file to load at (Basically serve data from another dir but without any redirect (sort of internal url resolution )) | |
xyz.com/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment