Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more

Go Back   Webmaster Forums - Webmaster forum for HTML, PHP, ASP, CSS and more > Web Design Forum > HTML / CSS
User Name
Password

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 04-05-2008, 04:07 AM   #1 (permalink)
dxlwebs
Junior Member
 
dxlwebs's Avatar
 
Join Date: Mar 2008
Posts: 94
Default .htaccess redirection

hey all i know this is not the right place to post this but i didnt know which category it went under so sorry to the admins!

i am trying to redirect 3 domain names one will stay normall and 2 others will go to subfolder here is what i have so far

Code:
# RewriteEngine on #RewriteCond %{HTTP_HOST} gamemasterx.com$ [NC] #RewriteCond %{REQUEST_URI} !^/vhost/site/location1/.*$ #RewriteRule ^(.*)$ /vhost/site/location1/$1 [L] # #RewriteCond %{HTTP_HOST} lifesforum.com$ [NC] #RewriteCond %{REQUEST_URI} !^/vhost/site/location2/.*$ #RewriteRule ^(.*)$ /vhost/site/location2/$1 [L]

but nothing seems to be hapening please tell me what im doing wrong i need help

thank you for reading
p.s. i am useing brinkster.com as my host
__________________
DxLwebs - Design Is Everything!
GMX The Games Forum
Mamma Klubi - Parents Zone

Last edited by dxlwebs : 04-05-2008 at 04:11 AM.
dxlwebs is offline   Reply With Quote
Sponsored Links
Old 04-05-2008, 04:31 AM   #2 (permalink)
dxlwebs
Junior Member
 
dxlwebs's Avatar
 
Join Date: Mar 2008
Posts: 94
Default Re: .htaccess redirection

problem solved instead of using htaccess i used Visual Basics

Code:
<%@Language=VBScript%> <% SiteNameURL = Request.ServerVariables("SERVER_NAME") Select Case SiteNameURL Case "yourdomain.com" Response.Redirect "page1.asp" Case "www.yourdomain.com" Response.Redirect "page1.asp" Case "yourotherdomain.com" Response.Redirect "page2.asp" Case "www.yourotherdomain.com" Response.Redirect "page2.asp" Case "subdomain1.yourdomain.com" Response.Redirect "page3.asp" Case "subdomain2.yourdomain.com" Response.Redirect "page4.asp" Case Else 'redirecting everything other than cases selected above Response.Redirect "other.asp" End Select %>
works like a dream but if you know how to sort out the htaccess that would be great for other poeple as well!

to use this script put it in a asp format and then edit to your needs very simple
__________________
DxLwebs - Design Is Everything!
GMX The Games Forum
Mamma Klubi - Parents Zone
dxlwebs is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Points Per Thread View: 1.00
Points Per Thread: 11.00
Points Per Reply: 5.00



» Sponsors

» Links

» Affiliates
Web Hosting
Online Backup Reviews
Marketing Find
Merchant Select
SiteMap Builder
Host Compare
Dedicated Servers

» Links

» Sports Network
Paintball Forum
Football Forum
Hockey Forum
Golf Forum
Boxing Forum
Lacrosse Forum
Baseball Forum
SnowBoarding Forum
Soccer Forum
MMA Forum


All times are GMT -4. The time now is 09:30 PM.



LinkBacks Enabled by vBSEO 3.0.0 RC8
Webmaster Forums