Current location: Hot Scripts Forums » Other Discussions » Web Servers » htaccess Help


htaccess Help

Reply
  #1 (permalink)  
Old 03-01-10, 09:43 AM
Fghtr4jc Fghtr4jc is offline
New Member
 
Join Date: Mar 2010
Posts: 1
Thanks: 1
Thanked 0 Times in 0 Posts
htaccess Help

Ok, so I am creating two websites for our church and we are using one host. We have a main church website and one for the youth ministry. I have designed them in Dreamweaver so when I uploaded everything via FTP the folders show the file path. For example, the home page (there is a holder page on the domain itself) is:

http://www.gtcdunn.org/GTWebsite/HTML/Index.htm

The youth site is similar: http://www.gtcdunn.org/FusionWebsite/HTML/Index.htm

Now we do own the domain www.fusionstudentchurch.org. So I have few things I wanted to do.

1) Mask the file path (i.e. gtcdunn.org/GTWebsite/HTML/Index.htm=>gtcdunn.org/Index.htm) goes to the main church home page (that way a simple 301 redirect from gtcdunn.org to gtcdunn.org/Index.htm will make the site go live when its finished.

2)Redirect and mask the file path for the youth site. (i.e. gtcdunn.org/FusionWebsite/HTML/Index.htm=> fusionstudentchurch.org/Index.htm) and set up a simple redirect for that as well.

For both of these I wanted the rule to go through the whole site (i.e. gtcdunn.org/FusionWebsite/HTML/Events.html=>fusionstudentchurch.org/Events.html

I wrote an htaccess file (no clue if its right or not) for the youth site (it's my testing field right now. Here is what I have:

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^gtcdunn.org/FusionWebsite/HTML/$ fusionstudentchurch.org/


So does anyone know what I need to do? I appreciate your advice!
Reply With Quote
  #2 (permalink)  
Old 03-01-10, 07:39 PM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,515
Thanks: 20
Thanked 109 Times in 106 Posts
RewriteRule ^GTWebsite/HTML/Index.htm$ /Index.htm [L]
RewriteRule ^FusionWebsite/HTML/Index.htm$ http://fusionstudentchurch.org/Index.htm [L]

Not tested
Reply With Quote
The Following User Says Thank You to wirehopper For This Useful Post:
Fghtr4jc (03-02-10)
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
need help with htaccess file for linux dinamogogi Web Servers 1 09-03-09 09:56 AM
[SOLVED] Preserve POST data on htaccess redirect? End User Web Servers 1 01-11-09 03:53 PM
htaccess conflict with similar url kiko08 Web Servers 0 11-08-07 12:53 AM
Search Engine URL: htaccess, dynamic php, & Frontpage ext. cebuy PHP 5 11-12-03 11:45 PM
htaccess client area mdittrich Script Requests 2 10-01-03 01:57 PM


All times are GMT -5. The time now is 01:30 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.