Title: Problem with Rewrite Module (Apache?)
Last modified: August 30, 2016

---

# Problem with Rewrite Module (Apache?)

 *  Resolved [Nate1](https://wordpress.org/support/users/nate1/)
 * (@nate1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/problem-with-rewrite-module-apache/)
 * Hello, I’m moving my WordPress installs to an Azure VM Ubunut) Ive installed 
   everything, WP is running but I cannot get the permalinks to operate correctly.
   The site operates 100% with ?p=4 if I change to the routed version, the page 
   will load (Can view full source) but the resources (js, Css) run a continuous
   loop in on themselves calling 301s – Does anyone know what causes this?
 * Thank you

Viewing 1 replies (of 1 total)

 *  Thread Starter [Nate1](https://wordpress.org/support/users/nate1/)
 * (@nate1)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/problem-with-rewrite-module-apache/#post-6515630)
 * SOLVED: So issue is:
    Ive moved the site from a server where no-www redirects
   to www. The New Server defaults to www redirects to no-www I had no alias in 
   my hosts file to tell domain.com to point to the new server, once setting this
   up works fine.
 * From the htaccess file linked here, needed to enable a few modules then comment
   option 1
    # Rewrite “www.example.com -> example.com”. and enable # Rewrite “example.
   com -> [http://www.example.com”](http://www.example.com”). [http://www.codeproject.com/Articles/597944/HowplustoplussetupplusaplusrockplussolidplusVMplus](http://www.codeproject.com/Articles/597944/HowplustoplussetupplusaplusrockplussolidplusVMplus)

Viewing 1 replies (of 1 total)

The topic ‘Problem with Rewrite Module (Apache?)’ is closed to new replies.

## Tags

 * [apache](https://wordpress.org/support/topic-tag/apache/)
 * [permalinks](https://wordpress.org/support/topic-tag/permalinks/)
 * [ubuntu](https://wordpress.org/support/topic-tag/ubuntu/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Nate1](https://wordpress.org/support/users/nate1/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/problem-with-rewrite-module-apache/#post-6515630)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
