Individual page redirects?
Posted: Mon Jul 13, 2020 6:55 pm
I've been trying to get redirects to work for an old site that I just switched over to a new CMSMS site. I just need to redirect the old URLs that no longer exist (it's the same domain) to some other page that does exist. I've tried redirect and rewrite methods, such as the simple redirect below. If I add more than 1 redirect line it gives me a 500 internal error. I've tried putting them at the top/bottom and several other rewrite codes from various tutorials and help guides but I cannot figure it out.
Any help would be appreciated. I've looked up everything I can find on the web re: htaccess files and I've spent all day trying to get this working 
Code: Select all
<IfModule rewrite_module>
RewriteEngine on
Redirect 301 /oldpage/ /index.php?page=newpage
Redirect 301 /oldpage2/ /index.php?page=newpage2
# If your CMSMS installation is in a subdirectory of your domain, you need to specify the relative path (from the root of the domain) here.
# In example: RewriteBase /[subdirectory name]
RewriteBase /
# Rewrites URLs in the form of /parent/child/grandchild but only rewrites if the requested URL is not a file or directory.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
</IfModule>
