Hi, This is my 1st attempt at redirection. I've been trying to redirect to another webserver on another piece of hardware on my LAN. new URL is a webcam with built-in webserver reading port 8080. I assumed that all I needed was a .htaccess file in my /var/www directory which is the home for level2.level1.com. Its contents are just the following 3 lines: Options +FollowSymLinks RewriteEngine on RewriteRule ^newsite* http://192.168.0.250:8080 Also I created a symbolic link in folder /etc/apache2/mods-enabled to /etc/apache2/mods-available/rewrite.load 1st: When I enter "newsite.level2.level1.com" in browser I end up at "level2.level1.com" and URL remains as I typed. 2nd: Does RewriteRule support ports appended to the new URL Should mention that level2.level1.com is thru DynDns.org as I have Comcast and the function to allow *.level2.level1.com is enabled Thanks, Rich
That rewrite means that if you visit level2.level1.com/newsite -- It'll redirect.. I suggest creating a .htaccess file, if you want to make a redirect, I suggest you just a create an A entry of newsite.level2.level1.com to 192.168.0.250 and then just go to newsite.level2.level1.com:8080
Hi, I did create a .htaccess with the following lines as I mention in my original query... Options +FollowSymLinks RewriteEngine on RewriteRule ^newsite* http://192.168.0.250:8080 I was hoping that I could just preface my current website of http://level2.level1.com with the newsite so I could enter http://newsite.level2.level1.com and it would redirect to http://192.168.0.250:8080 This is because DynDns gives me the ability to preface the original URL with additional text. They explain it as: Hostname: level2.level.com Wildcard: Create wildcard alias for "*.host.domain.tld" Service Type: x Host with IP address o WebHop Redirect o Offline Hostname Hope I explained it correctly. Thanks, Rich
You should note that mod_rewrite cannot modify the request itself and that redirect would redirect level2.level.com/newsite .. you should change your whole rewrite rule, I suggest seeing the rules that are used to remove www. from a link, those should help you get started
vx_brian, Reading your reply leads me to believe I am confused on what I am trying to do. I want to jump to a new page on a different physical server (192.168.0.250:8080) when I typing the following into a browser. website.level2.level1.com level2.level1.com is my home page on a PC running Apache2 under Kubuntu provided by DynDns.org and serves up a file called index.html. 192.168.0.250:8080 is a webcam with internal webserver Am I using the right function to attempt this? Thanks, Rich