Code: Select all
viewtopic.php?t=123Code: Select all
/topic/my-topic-title-123/Here is how you can quickly verify that your server is actually sending a 301 status header:
Method 1: Using curl in terminal / command prompt
Run the following command (replace with your forum URL):
Code: Select all
curl -I https://yourdomain.com/viewtopic.php?t=1
Code: Select all
HTTP/1.1 301 Moved Permanently
Location: https://yourdomain.com/topic/my-clean-slug-1/
- Open your browser and press to open Developer Tools.
Code: Select all
F12 - Switch to the Network tab.
- Check the box that says "Preserve log" (important, so the redirect doesn't clear the log).
- Enter your raw address in the browser address bar and hit Enter.
Code: Select all
viewtopic.php?t=1 - Look at the first request in the list: the status code should be 301 or 308, followed by the new URL with status 200.
Code: Select all
viewtopic.php