Cheap Web Space, Domain Name:
Web Space With E-Mail, PHP/MySQL.

How can I set-up a web redirect if I cannot access the web server configuration?

Question: 

Searching …

 

Unfortunately nothing found on "".

Premium support for Bitpalace web hosting customers only!

 in the United States (Chicago, IL): 1 (815) 526-7037, Fax (in Germany) +49 30 32 70 18 91

service@bitpalace.com 

Skype: bitpalast

One moment please … your browser is loading the page.

 

 

Symptom

When domain A is called, the browser should redirect to domain B. Normally such a website redirect is entered into the httpd.conf file. However, in shared hosting web space accounts this file cannot be accessed.

 

Solution

Select one of these three solutions:

  • a) Control web server with an .htaccess file
  • b) http-equiv redirect in an HTML page
  • c) Redirect by PHP

a) Control web server with an .htaccess file

You can control the web server with an .htaccess file. Simply create a file named ".htaccess" in the root directory of the website that you want to redirect to another website, e.g. in

/httpdocs
/second-domain.net
/third-domain.net

Enter commands into the .htaccess file that tell the web server what it ought to do.

Redirect a website to another website:
Redirect 301 / http://www.[target-domain].de

Redirect to a sub-directory:
Redirect /index.html http://www.[domain].com/directory

Redirect an old page to a new page:
Redirect /old-page.html http://www.[domain].com/directory/new-page.html

Change the filename extension, e.g. from .[from] to .[now]:
RedirectMatch 301 (.*)\.[from]$ http://www.[domain].com$1.[now]

Update the default page when a website loads, to display a different page from the default index.html, index.htm or index.php, when only a domain is entered into the browser:

DirectoryIndex [new-page].php

Redirect a www.[domain].com to [domain].com:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.[domain]\.com$ [NC]
RewriteRule ^(.*)$ http://[domain].com/$1 [L,R=301]


Redirect a [domain].com to www.[domain].com:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.[domain]\.com$ [NC]
RewriteRule ^(.*)$ http://www.[domain].com/$1 [L,R=301]


b) http-equiv redirect in an HTML page

Edit the page that should redirect to another address. If you want to redirect the homepage, this is normally index.php, index.htm or index.html. Between the ... tag add an http-equiv meta tag.

<meta http-equiv="refresh" content="0; url=http://www.[target-domain].com"/>

c) Redirect by PHP

Before any other output is send to the browser you can send an HTML-header to the browser that tells the browser to open a different URL:

header ('HTTP/1.1 301 Moved Permanently');
header("Location: http://www.[target-domain].com/[page].html");
header("Connection: close");
?>

 

Overview of frequently asked questions 

 

 

 


 

Additional Services

Starter Server: Affordable web server from  3.73 US$ () /month with PHP, database and many more 

Online Reservation System: Occupancy & vacancy schedule for any ressources (vehicles, sports facilities …) & guest houses, holiday apartments …  8.91 US$ () /month 

Software development: Development of database applications, programming and revision of computer programs & scripts  44.08 US$ () /hour 

 

FAQ – frequently asked questions 

 

Kiribati

Austria

Cameroon

Guinea

Pakistan

Colombia

Cuba

Antigua and Barbuda

Panama

Papua New Guinea

Jordan

Argentina

Costa Rica

Australia

Germany

Bahamas

Lesotho

Barbados

Belize

Paraguay

Tuvalu

Honduras

Peru

Madagascar

Bolivia

Botswana

Malawi

Chile

Philippines

India

Malta

Puerto Rico

Rwanda

Saint Kitts and Nevis

Samoa

Marshall Islands

Saint Vincent and the Grenadines

Zambia

Jamaica

Mauritius

Saint Lucia

Dominican Republic

Liberia

Switzerland

Mexico

Canada

Dominican Republic

Micronesia, Federated States of

Seychelles

Namibia

Ecuador

Sierra Leone

El Salvador

Fiji

Singapore

Gambia

Solomon Islands

Nauru

Spain

New Zealand

Sudan

Swaziland

Nicaragua

Nigeria

South Africa

Kenya

Ghana

Tanzania, United Republic of

Tonga

Guyana

Trinidad and Tobago

Uganda

Palau

Uruguay

Venezuela

Ireland

Grenada

Guatemala

United Kingdom

Zimbabwe

 

"Cheap Web Space": Affordable web space, cheap web server, low-cost webserver, low-price web servers: fast web server / small web server (cheap web space). Web server for private homepages / small website projects.

 in the United States (Chicago, IL): 1 (815) 526-7037 •  GmbH, Sensburger Allee 27, D-14055 Berlin (Germany)
Your purchase is tax-free, because you order from a non-EU country. © 2024  GmbH. All rights reserved. and the logo are registered trademarks of GmbH. For photo credits see imprint.

Imprint Privacy policy Sitemap