a-ok Posted November 12, 2019 Share Posted November 12, 2019 I know these posts have been created a lot and I've trawled through a bunch and can't seem to find a solution for my current problem. I moved a PW site from my own DigitalOcean droplet > it's own Droplet and the homepage works fine but every other page gets stuck in a 301 redirect loop. I used curl to debug it a bit: curl http://159.65.162.128/products/ -vvv * Trying 159.65.162.128... * TCP_NODELAY set * Connected to 159.65.162.128 (159.65.162.128) port 80 (#0) > GET /products/ HTTP/1.1 > Host: 159.65.162.128 > User-Agent: curl/7.54.0 > Accept: */* > < HTTP/1.1 301 Moved Permanently < Date: Tue, 12 Nov 2019 12:03:55 GMT < Server: Apache/2.4.41 (Ubuntu) < Expires: Thu, 19 Nov 1981 08:52:00 GMT < Cache-Control: no-store, no-cache, must-revalidate < Pragma: no-cache < X-Powered-By: ProcessWire CMS < Set-Cookie: wire=de9ifnvlqr75l546fg66a1tkrd; path=/; HttpOnly < Upgrade: h2,h2c < Connection: Upgrade < Location: /products/ < Content-Length: 0 < Content-Type: text/html; charset=utf-8 < * Connection #0 to host 159.65.162.128 left intact And in the Network tab in Chrome it seems to just keep redirecting to the same page and then eventually errors out. My .htaccess file is exactly how it was on the other DigitalOcean droplet and I have no idea where to go to now. I don't have any SSL set up yet either so no modifications to any vhosts files. Any immediate thoughts or has anyone had this issue before? Link to comment Share on other sites More sharing options...
Gideon So Posted November 12, 2019 Share Posted November 12, 2019 Do you do any redirect in your template or Apache settings?? Gideon Link to comment Share on other sites More sharing options...
dragan Posted November 12, 2019 Share Posted November 12, 2019 @a-ok Works for me... did you fix it? Link to comment Share on other sites More sharing options...
a-ok Posted November 12, 2019 Author Share Posted November 12, 2019 54 minutes ago, dragan said: @a-ok Works for me... did you fix it? I just fixed it. Turns out `sudo a2enmod rewrite` wasn't enabled ?FOUR HOURS LATER. Sorry for wasting everyone's time. Link to comment Share on other sites More sharing options...
dotnetic Posted November 12, 2019 Share Posted November 12, 2019 Please add a [SOLVED] in the topic title, so people know, that an answer isn't needed anymore. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now