Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Die URL einer Website mit mod_rewrite über die .htaccess Datei umschreiben"
excerpt: "Diese Anleitung erklärt, wie Sie die Zugriffs-URL mithilfe des mod_rewrite über die .htaccess Datei neu schreiben."
updated: 2022-12-22
updated: 2025-11-27
---

## Ziel
Expand Down Expand Up @@ -86,17 +86,17 @@ Dieses Umschreiben der URL kann das SEO-Ranking Ihrer Website fördern.

### Anfragen an einen bestimmten Ordner umleiten, ohne diesen Ordner anzuzeigen

Wenn Sie ein OVHcloud Webhosting nutzen, wird Ihr Domainname (z.B. **domain.tld**) als `Multisite` deklariert, um den Inhalt eines bestimmten Zielordners anzuzeigen, der auch als Wurzelverzeichnis bzw. `root folder` der Website bezeichnet wird. Sie können den Namen dieses Wurzelverzeichnisses anpassen.
Wenn Sie ein OVHcloud Webhosting nutzen, wird Ihr Domainname (z.B. **domain.tld**) auf einer Website in Ihrem Webhosting angezeigt. Dies dient dazu, den Inhalt eines Zielordners anzuzeigen, der auch als `Wurzelverzeichnis` bezeichnet wird. Dieser Ordner enthält die Dateien Ihrer Website. Sie können den Namen dieses Ordners anpassen, wenn Sie die Website in Ihrem OVHcloud Kundencenter zu Ihrem Hosting hinzufügen.

Lesen Sie unsere Anleitung zur [Einrichtung einer Multisite auf einem Webhosting](/pages/web_cloud/web_hosting/multisites_configure_multisite), wenn Sie weitere Informationen zu diesem Thema wünschen.
Weitere Informationen dazu finden Sie in unserer Anleitung „[Mehrere Websites auf einem Webhosting einrichten](/pages/web_cloud/web_hosting/multisites_configure_multisite).

Eine Website muss nicht im obersten Wurzelverzeichnis abgelegt werden. Sie können auch einen Unterordner darin erstellen (z. B. **MyWebsite**), und darin die Dateien der Website platzieren.
Eine Website muss nicht direkt im Wurzelverzeichnis abgelegt werden. Sie können auch einen Unterordner darin erstellen (z. B. **MyWebsite**), und darin die Dateien der Website platzieren.

In diesem Fall hat die URL für den Zugriff auf die Website folgende Form: **http://domain.tld/MyWebsite**.

Wenn sich Ihre Website-Dateien nicht direkt im Wurzelverzeichnis befinden, der für Ihren Domainnamen als Multisite deklariert wurde, und Sie den Namen des Unterordners nicht in der URL Ihrer Website anzeigen möchten, bearbeiten Sie die Datei ".htaccess" im Wurzelverzeichnis der Website.
Wenn die Dateien Ihrer Website nicht direkt im Wurzelverzeichnis liegen, das für Ihre Website in Ihrem OVHcloud Kundencenter definiert ist, und Sie den Namen des Ordners nicht in der URL Ihrer Website anzeigen möchten, bearbeiten Sie die Datei .htaccess“, die sich im Wurzelverzeichnis des Ordners befindet, der Ihre Website enthält.

Platzieren Sie den folgenden Code darin (wobei Sie in unserem Beispiel die Werte **domain.tld** durch Ihren Domainnamen und **MyWebsite** durch den Namen Ihres eigenen Ordners ersetzen):
Platzieren Sie den folgenden Code darin (wobei Sie die Werte **domain.tld** durch Ihren Domainnamen und **MyWebsite** durch den Namen Ihres eigenen Ordners ersetzen):

```bash
RewriteEngine on
Expand All @@ -109,7 +109,7 @@ In unserem Beispiel wird die Adresse Ihrer Website dann als **http://domain.tld*

### Automatische Umleitung zur Verwendung von HTTPS, wenn die Website über eine HTTP-URL aufgerufen wurde

Mithilfe von SSL-Zertifikaten können Sie den Austausch, der über das Protokoll HTTP mit Ihrer Website erfolgt, verschlüsseln. Dadurch wird verhindert, dass unbefugte Personen oder Robots Daten sammeln, die zwischen der Website und dem Besucher ausgetauscht werden, wie z.B. Bankdaten.
Mithilfe von SSL-Zertifikaten können Sie den Datenverkehr, der über das Protokoll HTTP mit Ihrer Website erfolgt, verschlüsseln. Dadurch wird verhindert, dass unbefugte Personen oder Bots Daten sammeln, die zwischen der Website und dem Besucher ausgetauscht werden, wie z.B. Bankdaten.

Wenn Sie nicht über ein SSL-Zertifikat verfügen, lesen Sie unsere Anleitung zur [Verwaltung eines SSL-Zertifikats auf einem Webhosting](/pages/web_cloud/web_hosting/ssl_on_webhosting).

Expand All @@ -135,4 +135,4 @@ Kontaktieren Sie für spezialisierte Dienstleistungen (SEO, Web-Entwicklung etc.

Wenn Sie Hilfe bei der Nutzung und Konfiguration Ihrer OVHcloud Lösungen benötigen, beachten Sie unsere [Support-Angebote](/links/support).

Treten Sie unserer [User Community](/links/community) bei.
Treten Sie unserer [User Community](/links/community) bei.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
excerpt: "Find out how to rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
updated: 2022-12-22
updated: 2025-11-27
---


Expand Down Expand Up @@ -88,15 +88,15 @@ This URL rewrite can help SEO your website.

### Redirect requests to a particular folder without displaying the folder

When you use an OVHcloud shared hosting plan, your domain name (for example **domain.tld**) is declared as a `Multisite` to display the content of a target folder also called `root folder`. You can customise the name of this `root folder`.
When using an OVHcloud shared hosting plan, your domain name (e.g., **domain.tld**) is declared on a website present on your web hosting. This is to display the content of a target folder also known as the `root folder`. This is the folder that contains the files of your website. You can customise the name of this `root folder` when you add the website to your hosting via the OVHcloud Control Panel.

Please refer to our guide on [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) if you would like more information on this subject.
Refer to our guide « [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) » if you want to find out more about this topic.

Some users do not place their websites directly in the `root folder`, but inside a subfolder (for example: **MyWebsite**) inside this `root folder`.

In this case, the URL to access the site will be as follows: **http://domain.tld/MyWebsite**.

If your website is not located directly in the `root folder` declared for your domain name in `Multisites`, and you do not want to display the folder name in your website’s URL, edit the ".htaccess" file located in the root directory of your website.
If the files of your website are not directly in the `root folder` declared for your website in the OVHcloud Control Panel and you do not want to display the folder name in the URL of your website, edit the ".htaccess" file located at the root of the directory containing your website.

Place the following code inside (replacing the values **domain.tld** with your domain name, and **MyWebsite** with the name of your own folder):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
excerpt: "Find out how to rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
updated: 2022-12-22
updated: 2025-11-27
---


Expand Down Expand Up @@ -88,15 +88,15 @@ This URL rewrite can help SEO your website.

### Redirect requests to a particular folder without displaying the folder

When you use an OVHcloud shared hosting plan, your domain name (for example **domain.tld**) is declared as a `Multisite` to display the content of a target folder also called `root folder`. You can customise the name of this `root folder`.
When using an OVHcloud shared hosting plan, your domain name (e.g., **domain.tld**) is declared on a website present on your web hosting. This is to display the content of a target folder also known as the `root folder`. This is the folder that contains the files of your website. You can customise the name of this `root folder` when you add the website to your hosting via the OVHcloud Control Panel.

Please refer to our guide on [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) if you would like more information on this subject.
Refer to our guide « [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) » if you want to find out more about this topic.

Some users do not place their websites directly in the `root folder`, but inside a subfolder (for example: **MyWebsite**) inside this `root folder`.

In this case, the URL to access the site will be as follows: **http://domain.tld/MyWebsite**.

If your website is not located directly in the `root folder` declared for your domain name in `Multisites`, and you do not want to display the folder name in your website’s URL, edit the ".htaccess" file located in the root directory of your website.
If the files of your website are not directly in the `root folder` declared for your website in the OVHcloud Control Panel and you do not want to display the folder name in the URL of your website, edit the ".htaccess" file located at the root of the directory containing your website.

Place the following code inside (replacing the values **domain.tld** with your domain name, and **MyWebsite** with the name of your own folder):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
excerpt: "Find out how to rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
updated: 2022-12-22
updated: 2025-11-27
---


Expand Down Expand Up @@ -88,15 +88,15 @@ This URL rewrite can help SEO your website.

### Redirect requests to a particular folder without displaying the folder

When you use an OVHcloud shared hosting plan, your domain name (for example **domain.tld**) is declared as a `Multisite` to display the content of a target folder also called `root folder`. You can customise the name of this `root folder`.
When using an OVHcloud shared hosting plan, your domain name (e.g., **domain.tld**) is declared on a website present on your web hosting. This is to display the content of a target folder also known as the `root folder`. This is the folder that contains the files of your website. You can customise the name of this `root folder` when you add the website to your hosting via the OVHcloud Control Panel.

Please refer to our guide on [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) if you would like more information on this subject.
Refer to our guide « [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) » if you want to find out more about this topic.

Some users do not place their websites directly in the `root folder`, but inside a subfolder (for example: **MyWebsite**) inside this `root folder`.

In this case, the URL to access the site will be as follows: **http://domain.tld/MyWebsite**.

If your website is not located directly in the `root folder` declared for your domain name in `Multisites`, and you do not want to display the folder name in your website’s URL, edit the ".htaccess" file located in the root directory of your website.
If the files of your website are not directly in the `root folder` declared for your website in the OVHcloud Control Panel and you do not want to display the folder name in the URL of your website, edit the ".htaccess" file located at the root of the directory containing your website.

Place the following code inside (replacing the values **domain.tld** with your domain name, and **MyWebsite** with the name of your own folder):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
excerpt: "Find out how to rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
updated: 2022-12-22
updated: 2025-11-27
---


Expand Down Expand Up @@ -88,15 +88,15 @@ This URL rewrite can help SEO your website.

### Redirect requests to a particular folder without displaying the folder

When you use an OVHcloud shared hosting plan, your domain name (for example **domain.tld**) is declared as a `Multisite` to display the content of a target folder also called `root folder`. You can customise the name of this `root folder`.
When using an OVHcloud shared hosting plan, your domain name (e.g., **domain.tld**) is declared on a website present on your web hosting. This is to display the content of a target folder also known as the `root folder`. This is the folder that contains the files of your website. You can customise the name of this `root folder` when you add the website to your hosting via the OVHcloud Control Panel.

Please refer to our guide on [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) if you would like more information on this subject.
Refer to our guide "[Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite)" if you want to find out more about this topic.

Some users do not place their websites directly in the `root folder`, but inside a subfolder (for example: **MyWebsite**) inside this `root folder`.

In this case, the URL to access the site will be as follows: **http://domain.tld/MyWebsite**.

If your website is not located directly in the `root folder` declared for your domain name in `Multisites`, and you do not want to display the folder name in your website’s URL, edit the ".htaccess" file located in the root directory of your website.
If the files of your website are not directly in the `root folder` declared for your website in the OVHcloud Control Panel and you do not want to display the folder name in the URL of your website, edit the ".htaccess" file located at the root of the directory containing your website.

Place the following code inside (replacing the values **domain.tld** with your domain name, and **MyWebsite** with the name of your own folder):

Expand Down Expand Up @@ -137,4 +137,4 @@ For specialised services (SEO, development, etc.), contact [OVHcloud partners](/

If you would like assistance using and configuring your OVHcloud solutions, please refer to our [support offers](/links/support).

Join our [community of users](/links/community).
Join our [community of users](/links/community).
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
excerpt: "Find out how to rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
updated: 2022-12-22
updated: 2025-11-27
---


Expand Down Expand Up @@ -88,15 +88,15 @@ This URL rewrite can help SEO your website.

### Redirect requests to a particular folder without displaying the folder

When you use an OVHcloud shared hosting plan, your domain name (for example **domain.tld**) is declared as a `Multisite` to display the content of a target folder also called `root folder`. You can customise the name of this `root folder`.
When using an OVHcloud shared hosting plan, your domain name (e.g., **domain.tld**) is declared on a website present on your web hosting. This is to display the content of a target folder also known as the `root folder`. This is the folder that contains the files of your website. You can customise the name of this `root folder` when you add the website to your hosting via the OVHcloud Control Panel.

Please refer to our guide on [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) if you would like more information on this subject.
Refer to our guide « [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) » if you want to find out more about this topic.

Some users do not place their websites directly in the `root folder`, but inside a subfolder (for example: **MyWebsite**) inside this `root folder`.

In this case, the URL to access the site will be as follows: **http://domain.tld/MyWebsite**.

If your website is not located directly in the `root folder` declared for your domain name in `Multisites`, and you do not want to display the folder name in your website’s URL, edit the ".htaccess" file located in the root directory of your website.
If the files of your website are not directly in the `root folder` declared for your website in the OVHcloud Control Panel and you do not want to display the folder name in the URL of your website, edit the ".htaccess" file located at the root of the directory containing your website.

Place the following code inside (replacing the values **domain.tld** with your domain name, and **MyWebsite** with the name of your own folder):

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: "Tutorial - Rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
excerpt: "Find out how to rewrite the URL for accessing your website using mod_rewrite via the .htaccess file"
updated: 2022-12-22
updated: 2025-11-27
---


Expand Down Expand Up @@ -88,15 +88,15 @@ This URL rewrite can help SEO your website.

### Redirect requests to a particular folder without displaying the folder

When you use an OVHcloud shared hosting plan, your domain name (for example **domain.tld**) is declared as a `Multisite` to display the content of a target folder also called `root folder`. You can customise the name of this `root folder`.
When using an OVHcloud shared hosting plan, your domain name (e.g., **domain.tld**) is declared on a website present on your web hosting. This is to display the content of a target folder also known as the `root folder`. This is the folder that contains the files of your website. You can customise the name of this `root folder` when you add the website to your hosting via the OVHcloud Control Panel.

Please refer to our guide on [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) if you would like more information on this subject.
Refer to our guide « [Hosting multiple websites on your Web Hosting plan](/pages/web_cloud/web_hosting/multisites_configure_multisite) » if you want to find out more about this topic.

Some users do not place their websites directly in the `root folder`, but inside a subfolder (for example: **MyWebsite**) inside this `root folder`.

In this case, the URL to access the site will be as follows: **http://domain.tld/MyWebsite**.

If your website is not located directly in the `root folder` declared for your domain name in `Multisites`, and you do not want to display the folder name in your website’s URL, edit the ".htaccess" file located in the root directory of your website.
If the files of your website are not directly in the `root folder` declared for your website in the OVHcloud Control Panel and you do not want to display the folder name in the URL of your website, edit the ".htaccess" file located at the root of the directory containing your website.

Place the following code inside (replacing the values **domain.tld** with your domain name, and **MyWebsite** with the name of your own folder):

Expand Down
Loading