Bluehost.com Web Hosting $6.95

replace directory string in url

This is a discussion on replace directory string in url within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi folks, i searched several hours google and other places to solve my problem but till now i do not ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 10-01-2006
sk71@gmx.de
 
Posts: n/a
Default replace directory string in url

Hi folks,

i searched several hours google and other places to solve my problem
but till now i do not find any solution for that.

Scenario:

I use Apache as webserver and my files lie in the directory DIR1 and
above. I have also files and directories in the root directory of
apache webdocs.

My problem:

If i would get the following URL http://www.example.de/DIR1/page1.php
Apache should rewrite the URL in the Browser to
http://www.example.de/page1.php.

I can not change my DocumentRoot directive. If so i did not have a
problem because this way is very easy to realize. I try to solve my
problem with the Alias directive but in this case the URL in the
Browser did not change.

Is it possible to replace only the /DIR1/ string in the URL, put them
to the browser but inside apache is using the directory /var/www/DIR1?

Thanks.

Stefan

 
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:04 AM.


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