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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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/ |