Apache2 redirect
Hi there.
From what I understand from this page , aliasing is pretty straight forward. However, what I want to do is: When I'm developing on my localhost, I would like all my links pointing to sub pages to be something like href=www.mysite.com/mypage.php instead of just href=mypage.php or href=localhost.php So what I though was add an alias like: Code:
Alias www.mysite.com localhost Code:
Alias site1 site2 thanks in advance. plk |
Are you using 1.3 or 2.0 (or 2.2)? Your documentation URL points to 1.3, but your reference to apache2.conf suggest 2.0.
# httpd -v <-- will tell you I'm not sure I understand what you are trying to do, but perhaps you are intending to look for the Redirect directive. |
Sorry Im on Apache 2.
Ok, so what im trying to do is: Say I have a piece of code on my website like: PHP Code:
PHP Code:
|
ignore this post, mistake.
Still waiting for some help tho :-) |
Quote:
PHP Code:
PHP Code:
|
Yeah I actually need to use that. I'm concerned about search engines ranking so you know ...
|
You can use:
Code:
<a href="http://www.mysite.com/images/picture.jpg">Click here</a> Add a line like: Code:
192.168.1.1 www.mysite.com Remove the line when you're ready to go live on the server. |
Thanks a lot man.
However, I decided to do something else. I'll just include a $path variable to all my php files on the server so I can actually develop multiple servers at the same time. If using the etc/hosts method (which works just fine) it redirects to my localhost IP, no sub folders etc.. Anyhow. Thank you!! plk |
All times are GMT -5. The time now is 04:22 AM. |