adrianmak Posted July 2, 2017 Posted July 2, 2017 My old html website just has pages not more than twenty I like to add redirect link in htaccess file instead of using a pw module I found that there are many lines of config related to mod_rewrite rules Just for example Redirect 301 /about-us.html /about/about-us It could redirect, but it will attach original page at the end something like thathttp://my.domaion.com/about/about-us/?it=about-us.html
eelkenet Posted July 3, 2017 Posted July 3, 2017 Why not use http://modules.processwire.com/modules/process-jumplinks/ ? Wouldn't that be less problematic? 2
Mike Rockett Posted July 4, 2017 Posted July 4, 2017 You'd be better off using Jumplinks as it is, as @eelkenet says, less problematic. However, if you really want to use mod_rewrite: # Place under RewriteEngine On RewriteRule ^oldpage.html$ /new-location/? [R=302,L] To make permanent, switch out 302 for 301. 2
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