|
| |
|
|
chobo
Posts: 5 Joined: 7/18/2007 Status: offline
|
Matching local site structure with live site using DW - 7/18/2007 16:14:06
I've having a hell of a time trying to match my local site structure with the online one using dreamweaver. The structure of my online site contains files and folders that are outside the public_html directory Ex. Online Site structure some_other_folder -Includes -Classes public_html -index.php When I setup a site in dreamweaver I can select my local root folder which contains that directory structure, so that it shows the above, but when I try and run a file it adds in "public_html" in the url, which messes everything up. Ex. http://mysite.local/public_html/index.php Should be: http://mysite.local/index.php I want to have an exact match so I can use dreamweavers synchronize feature and make it easy to maintain both my local and online sites without having to have two different versions. Any help is appreciated, thanks
|
|
|
|
chobo
Posts: 5 Joined: 7/18/2007 Status: offline
|
RE: Matching local site structure with live site using DW - 7/19/2007 0:01:27
I found a solution, this thread can be closed
|
|
|
|
chobo
Posts: 5 Joined: 7/18/2007 Status: offline
|
RE: Matching local site structure with live site using DW - 7/19/2007 3:51:06
I put a .htaccess file in the public_html directory that contains the following. RewriteEngine On rewriteRule ^public_html/?(.*) /$1 [R=301,L] This gets rid of the "public_html" in the url. Note: .htaccess is used with apache servers.
|
|
|
|
mar0364
Posts: 3026 Joined: 4/5/2002 From: Florida, US Status: offline
|
RE: Matching local site structure with live site using DW - 7/19/2007 8:40:38
Nice work! Thanks for sharing. Rich
_____________________________
Easy Web “Stay committed to your decisions, but stay flexible in your approach.”
|
|
New Messages |
No New Messages |
Hot Topic w/ New Messages |
Hot Topic w/o New Messages |
Locked w/ New Messages |
Locked w/o New Messages |
|
Post New Thread
Reply to Message
Post New Poll
Submit Vote
Delete My Own Post
Delete My Own Thread
Rate Posts
|
|
|