-
Junior Member
URL Rewriting in .htaccess file : simple question
Hello.
I have a simple question but just can't get it to work right. I am trying to do a url rewriting in .htaccess file, and I have 2 domains at host1free, so i have the following :
root/domains/myaccount.oliwy.net/
root/domains/website.com/
I would like all URLs requested on website.com to land on myaccount.oliwy.net, but I want to see website.com in the URL.
For exemple, if someone requests
http://www.website.com/blabla/file.php?p=0&p=1
I want him to be r'edirected to
http://myaccount.oliwy.net/somepath/...le.php?p=0&p=1
but I want to have the original URL still displaying in the browser. How can I do this ?
Thanks for your help.
-
Junior Member
Re: URL Rewriting in .htaccess file : simple question
also, I did this which works but displays the redirected URL instead of the original URL in the browser :
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} website.com
RewriteRule ^(.*)$ http://myaccount.oliwy.net/somepath/$1 [L]
-
Super Moderator
Re: URL Rewriting in .htaccess file : simple question
Hello,
I am not sure 100%, but you might try to use Domain pointers. It will point one domain to another.
-
Junior Member
Re: URL Rewriting in .htaccess file : simple question
Thanks for your reply. How do I use Domain pointers ? I went to DNS Management for the domain name, I know I have to do something in Add Domain Records, but what exactly ? Should I set the PTR field to something ?
Thanks for your help.
-
Super Moderator
Re: URL Rewriting in .htaccess file : simple question
It is located not in DNS Management, but under Advanced Features. Check here for more information Site-Helper.com -- Helping you get the most out of DirectAdmin and your web site!
-
Junior Member
Re: URL Rewriting in .htaccess file : simple question
Big thanks. Exactly what I was looking for.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules