Need some help with rewrite a url

This is a discussion on Need some help with rewrite a url within the Windows Web Servers forums, part of the Web Server and Related Forums category; I've been using: redirect /cfdocs http://VergoOne/cfmx/cfdocs to redirect /cfdocs to /cfmx/cfdocs but i now have ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-26-2004
Jorge Schrauwen
 
Posts: n/a
Default Need some help with rewrite a url

I've been using:
redirect /cfdocs http://VergoOne/cfmx/cfdocs
to redirect /cfdocs to /cfmx/cfdocs

but i now have a problem, when i acces the server via localhost it
wille redirect to http://VergoOne/cfmx/cfdocs not
http://locahost/cfmx/cfdocs.

So how would i fix this that /cfdocs will be redirects to
http://<host>/cfmx/docs? i know mod rewrite can do it but what i tryed
failled sofar.

  #2 (permalink)  
Old 07-26-2004
Thor Kottelin
 
Posts: n/a
Default Re: Need some help with rewrite a url



Jorge Schrauwen wrote:
>
> I've been using:
> redirect /cfdocs http://VergoOne/cfmx/cfdocs
> to redirect /cfdocs to /cfmx/cfdocs
>
> but i now have a problem, when i acces the server via localhost it
> wille redirect to http://VergoOne/cfmx/cfdocs not
> http://locahost/cfmx/cfdocs.
>
> So how would i fix this that /cfdocs will be redirects to
> http://<host>/cfmx/docs? i know mod rewrite can do it but what i tryed
> failled sofar.


Something like...

RewriteEngine on
RewriteRule ^cfdocs$ /cfmx/cfdocs [L,R]

....should do the trick.

Thor

--
http://www.anta.net/
 
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

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



All times are GMT +1. The time now is 12:47 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0