Are additional URLs doing 301 redirect?
Permalink
Are additional URLs defined on the page properties C5's built in 301 redirects? Or 301 redirects must be implemented through .htaccess?
Thanks jero.
Yes I was talking about the additional paths that you can set in the page properties.
I was thinking 301's are only done by .htaccess. I suppose C5's built-in feature in the script is doing what is otherwise achieved using .htaccess.
Yes I was talking about the additional paths that you can set in the page properties.
I was thinking 301's are only done by .htaccess. I suppose C5's built-in feature in the script is doing what is otherwise achieved using .htaccess.
It's most likely the header() function in PHP that's doing the hard work:
header ("HTTP/1.1 301 Moved Permanently"); header ("Location:http://www.example.com");
Thanks jero. That makes sense.
That bit of code is in /concrete/startup/url_check.php.
That bit of code is in /concrete/startup/url_check.php.
Just reviving an old post.
Looks like it's actually handled by the code in /concrete/startup/external_link.php file:
Looks like it's actually handled by the code in /concrete/startup/external_link.php file:
header('Location: ' . Loader::helper('navigation')->getLinkToCollection($c, true), true, 301);
Yes, a 301 Moved Permanently is being done, but it's not being done by .htaccess.