php - Redirect issue, keeps adding string to url because of wrong rewrite -
i have link: /oldlink/ needs directed /oldlink/general if code in htaccess there infinite loop because keeps adding /general/general/general behind url.
redirect 301 /oldlink/ /oldlink/general/ is there kind of code can add let stop adding string url? maybe rewrite instead of redirect?
your redirect pattern matches destination url. need use redirectmatch instead of redirect directive avoid loop error
redirectmatch ^/oldlink/?$ /oldlink/general/
Comments
Post a Comment