navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

Microsoft MVP

 

Matching local site structure with live site using DW

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> Dreamweaver Help >> Matching local site structure with live site using DW
Page: [1]
 
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

(in reply to chobo)
BobbyDouglas

 

Posts: 5431
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Matching local site structure with live site using DW - 7/19/2007 0:55:27   
What was your solution? :)

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to chobo)
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.

(in reply to BobbyDouglas)
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.”


(in reply to chobo)
Page:   [1]

All Forums >> Web Development >> Dreamweaver Help >> Matching local site structure with live site using DW
Page: [1]
Jump to: 1





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