Skip to content

Instantly share code, notes, and snippets.

@rashanjyot
Created April 12, 2020 15:31
Show Gist options
  • Save rashanjyot/9649b9f28fade08500a33f502beea612 to your computer and use it in GitHub Desktop.
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
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