Directory Structure of shared hosting so I can do a manual .htaccess


#1

just looking for the directory structure i need to use for this. i do one of these about every 5 years and i can never find it so i need to ask. thanks!


#2

You can see the path to the web directory of your site (its document root) when you edit Web-Hosting on the Manage-Domain page of web panel (typically /home/username/example.com):

https://panel.dreamhost.com/index.cgi?tree=domain.manage&

To see your server’s directory structure, you could use the tree command (increase 1 to 2, 3, etc. for deeper listing):

ssh username@example.com tree -dL 1 /

However, I don’t think you’d need that much detail for most .htaccess tasks…


#3

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.