Pascal_761 Posted September 15, 2015 Share Posted September 15, 2015 Hello, The old version of the website that i'm currently working on had urls like /index.php/section/page1 and many of these url show up in google.This urls don't exists anymore on the new version of the website, but processwire handle this urls like the homepage with a 200 result code. I assume this is because index.php is included in the url.I need a 404 result code.Is there a way to achieve this in processwire ? PS : of course the old version of the website wasn't made with processwire Link to comment Share on other sites More sharing options...
Pascal_761 Posted September 15, 2015 Author Share Posted September 15, 2015 For example http://processwire.com/index.php/this/page/dont/exists should return a 404 error code. 1 Link to comment Share on other sites More sharing options...
Pascal_761 Posted September 18, 2015 Author Share Posted September 18, 2015 I found a solution with an apache rewrite rule that removes index.php from url RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC] RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L] source : https://ellislab.com/expressionengine/user-guide/urls/remove_index.php.html 1 Link to comment Share on other sites More sharing options...
Christophe Posted September 18, 2015 Share Posted September 18, 2015 In case (perhaps it could have helped you): Redirects: http://modules.processwire.com/modules/process-redirects/; Jumplinks: http://modules.processwire.com/modules/process-jumplinks/. 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