Title: Create a Redirect
Last modified: November 8, 2023

---

# Create a Redirect

 *  [mwsager](https://wordpress.org/support/users/mwsager/)
 * (@mwsager)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/create-a-redirect/)
 * Hello noob local hosted install question, I have hosted a site in past on big
   name providers but decided to use my Raspberry Pi to locally host the site.
 * I got it up and running BUT I have to go to MachineName.local/wordpress to get
   to the site, if try to just go to machinename.local it displays the **Apache2
   Debian Default Page**.
   I want to use Dynu to redirect the page to my local pi,
   but think i need to get the redirect to the WordPress page fixed first, and to
   clarify, I do not JUST want to redirect to the /worpress, I want to have the 
   homepage at the root of the URL /

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Gerry](https://wordpress.org/support/users/metamezzo/)
 * (@metamezzo)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/create-a-redirect/#post-17188473)
 * Hello, this article might help point you in the right direction: [https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/#method-i-without-url-change](https://wordpress.org/documentation/article/giving-wordpress-its-own-directory/#method-i-without-url-change).
   Good luck!
 *  [william2277](https://wordpress.org/support/users/william2277/)
 * (@william2277)
 * [2 years, 6 months ago](https://wordpress.org/support/topic/create-a-redirect/#post-17215069)
    1. **Move WordPress to the root:**
    2.  - Ensure all WordPress files are in `/var/www/html`.
    3. **Update Apache VirtualHost:**
    4.  - Change the `DocumentRoot` to `/var/www/html`.
    5. **Update WordPress URL:**
    6.  - In WordPress settings, set both “WordPress Address” and “Site Address” to`
          http://machinename.local`.
    7. **Restart Apache:**
    8.  - Restart Apache with `sudo service apache2 restart`.
 * Now, `machinename.local` should load your WordPress site. After confirming, set
   up Dynu for redirection to your Raspberry Pi’s static IP. [ ,](https://www.cosmesurgehospital.com.pk)

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Create a Redirect’ is closed to new replies.

 * In: [Localhost Installs](https://wordpress.org/support/forum/localhost-installs/)
 * 2 replies
 * 3 participants
 * Last reply from: [william2277](https://wordpress.org/support/users/william2277/)
 * Last activity: [2 years, 6 months ago](https://wordpress.org/support/topic/create-a-redirect/#post-17215069)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
