Welcome to WebmasterWorld Guest from 188.8.131.52
i want to realize a new project, and dont know how.
I have a domain eg www.domain.com with about 1 MB space on it. To connect the web im using a flatrate, so my server can be online all the time. On this server at home is apache installed for webserving, and a little utility, that automaticly uploads the .htaccess file with the new one with the new ip of my server at home, each time my internet-provider drops the line. htaccess is like this:
"Redirect /index.html [<ip>...]
The second but much bigger problem are the search engines: What do they take up in theyr index? If its the page with my ip adress it would be a desaster cause its a dynamicly asigned ip.
If this is no problem would it affect my ranking?
How can i solve the problem so i can use my server at home?
I dont want to be dependant of one more service like eg dynip, so i decided to use modrewrite.
But i run into problems, cause i'm a 1day old beginner.
I tried this in htaccess:
rewriteRule ^(.+) [184.108.40.206...] [L,R]
If your host permits, you may be able to use a Redirect instead of a Rewrite. Redirect commands rely on the mod_alias module, not mod_rewrite, so this may be available to you. Check with your host.
The Apache documents for mod_alias are here [httpd.apache.org] and I suspect you'll need the RedirectMatch directive. Additionaly, some discussion and examples are available here [freebsddiary.org]. These aren't the best examples for your situation but may get you going in a usable direction.
This works fine with this in htaccess:
RedirectMatch (.*)\.html$ [220.127.116.11$1.html...]
but: the user realizes a change in the adress from [mydomain.com...] to [18.104.22.168...] and the more important thing are search engines, what adress do they take up in their index?? and they realize the redirect i think.