Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Coding Forum


You are currently viewing our Coding Forum as a guest. Please register to participate.
Login



Reply
Old 03-01-2006, 05:14 PM .htaccess issue
Super Talker

Posts: 111
Trades: 0
Gah, I'm using the .htaccess method.
Anyways, this worked in apache 1.3 but not in apache 2.0.
Can yall tell me what's wrong with it?

RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} trinity.martint.net
RewriteCond %{REQUEST_URI} !trinity/
RewriteRule ^(.*)$ trinity/$1 [L]

Basically, I want martint.net/trinity/ to go to trinity.martint.net

Any help is welcomed!
__________________

Please login or register to view this content. Registration is FREE
sixpacgenius is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-02-2006, 06:31 PM Re: .htaccess issue
Novice Talker

Posts: 10
Trades: 0
Hi,

Maybe I misunderstood your question, but this should forward martint.net/trinity/ -> trinity.martint.net:

Code:
 
RewriteEngine On
RewriteBase /
RewriteRule ^trinity/?$ http://trinity.martint.net
Put the .htaccess in your domain's root directory.

- Sindre
__________________

Please login or register to view this content. Registration is FREE

Premium hosting services for the Magento eCommerce platform.
Professional Magento Installation included with every plan.
Sindre is offline
Reply With Quote
View Public Profile Visit Sindre's homepage!
 
Old 03-02-2006, 11:37 PM Re: .htaccess issue
Super Talker

Posts: 111
Trades: 0
Thank You for answering, yet it did not solve my problem.
You understood my question perfectly. I want:
http://martint.net/trinity/
to go to:
http://trinity.martint.net

Now, I tried the code, and nothing loads.
I get the Server Not Found message.

Quote:
ErrorDocument 404 /work/404error.php
RewriteEngine On
RewriteBase /
RewriteRule ^trinity/?$ http://trinity.martint.net
There is my .htaccess, and it is in my, root dir.

Btw, I'm running Windows with Apache 2.0.
Thankyou.
__________________

Please login or register to view this content. Registration is FREE
sixpacgenius is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to .htaccess issue
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19504 seconds with 12 queries