# Shopware is adding host Url to some network requests causing 404

**URL:** <https://forum.shopware.com/t/shopware-is-adding-host-url-to-some-network-requests-causing-404/89061>\
**Category:** Shopware 6 (English)\
**Tags:** installation--gettin\
**Created:** [12. Juli 2021 um 10:26 UTC](https://forum.shopware.com/t/shopware-is-adding-host-url-to-some-network-requests-causing-404/89061 "2021-07-12T10:26:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajat.garg](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rajat.garg](https://forum.shopware.com/u/rajat.garg)\
**Post date:** [12. Juli 2021 um 10:26 UTC](https://forum.shopware.com/t/shopware-is-adding-host-url-to-some-network-requests-causing-404/89061/1 "2021-07-12T10:26:11Z")

</div>

I have installed shopware6 on Apache Server on Ubuntu 20.04 LTS. It is working fine for some of the URLs , for others it is adding hostname twice.

[http://10.1.2.30/http://10.1.2.30/index.php/widgets/checkout/info](http://10.1.2.30/http://10.1.2.30/index.php/widgets/checkout/info)

I have installed shopware on following path: `/var/www/shopware/` .Here is my shopware configuration file for apache:

```
<VirtualHost *:80>
    ServerName "shopware"
    DocumentRoot /var/www/shopware/public

    <Directory /var/www/shopware/public>
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        allow from all
    </Directory>

    ErrorLog ${APACHE_LOG_DIR}/shopware-platform.error.log
    CustomLog ${APACHE_LOG_DIR}/shopware-platform.access.log combined
    Loglevel debug

</VirtualHost>

```

Is there something which I need to add in order to make it work?

Thansks

---

<div class="post-metadata">

**Author:** ![rajat.garg](https://avatars.discourse-cdn.com/v4/letter/r/858c86/32.png) [@rajat.garg](https://forum.shopware.com/u/rajat.garg)\
**Post date:** [12. Juli 2021 um 19:22 UTC](https://forum.shopware.com/t/shopware-is-adding-host-url-to-some-network-requests-causing-404/89061/2 "2021-07-12T19:22:20Z")

</div>

The issue was with the Apache Module mod\_rewrite. I haven’t enable the rewrite module from apache. It is clearly mentioned in the shopware doc, but I missed it.

More details about mod\_rewrite: [mod\_rewrite - Apache HTTP Server Version 2.4](https://httpd.apache.org/docs/2.4/mod/mod_rewrite.html)
