Matching local site structure with live site using DW (Full Version)

All Forums >> [Web Development] >> Dreamweaver Help



Message


chobo -> 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 -> 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




BobbyDouglas -> RE: Matching local site structure with live site using DW (7/19/2007 0:55:27)

What was your solution? [8|]




chobo -> 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 -> RE: Matching local site structure with live site using DW (7/19/2007 8:40:38)

Nice work! Thanks for sharing.

Rich




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.03125