Log in

View Full Version : URL detection and forward ... htaccess ?



cosmos2000
04-08-2007, 02:22 AM
Help needed please for URL detection by search engines and any user.

My site Sudoku-As http://www.sudoku-as.co.nr was used an Free URL Redirection service with www.freedomain.co.nr or simply www.co.nr.

It does appear that the company providing the .co.nr domains has shut down since yesterday, causing all of the .co.nr domains to stop functioning (see information from wikipedia.org at http://en.wikipedia.org/wiki/.co.nr ; This page was last modified 19:50, 7 April 2007).

Actually my stuff is on server chez.com at main URL :
http://www.chez.com/cosmos2000/Sudoku/Sudoku_As.html

This last URL was never promoted in searhc engines but only http://www.sudoku-as.co.nr. So my website stop functioning.

How to maintain it online using something like automatic URL detection and forward or may be some tricks for good use of htaccess.

Thanks.

Twey
04-08-2007, 11:43 AM
freedomain.co.nr are gone? :(

You can't get that domain to point back at your server, I'm afraid, without buying the co.nr domain.

cosmos2000
04-08-2007, 02:23 PM
So troubleful !!!!!!! Zuttttttttt

But what about Virtual User Hosts, refferred in the fellowing link:

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Virtual User Hosts
Description:
Assume that you want to provide www.username.host.domain.com for the homepage of username via just DNS A records to the same machine and without any virtualhosts on this machine.
Solution:
For HTTP/1.0 requests there is no solution, but for HTTP/1.1 requests which contain a Host: HTTP header we can use the following ruleset to rewrite http://www.username.host.com/anypath internally to /home/username/anypath:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.[^.]+\.host\.com$
RewriteRule ^(.+) %{HTTP_HOST}$1 [C]
RewriteRule ^www\.([^.]+)\.host\.com(.*) /home/$1$2


In this case I d'nt kwon how to place old URL http://www.sudoku-as.co.nr
and at the same time take in consideration my stuff at http://www.chez.com/cosmos2000/Sudoku/Sudoku_As.html

Twey
04-08-2007, 02:28 PM
Yes, but you need to have the co.nr DNS servers direct requests from sudoku-as.co.nr to chez.com in the first place.

cosmos2000
04-08-2007, 02:36 PM
Thank for your reply.

So "Virtual User Hosts" configuration in Apache is useless and means nothing ? !

Twey
04-08-2007, 02:38 PM
It's not useless, but you need to own the domain before you can serve a different website from it.

cosmos2000
04-08-2007, 03:26 PM
Thanks Twey

So I am in big **** because the co.nr ....

Twey
04-08-2007, 03:28 PM
Pretty much, yes.