Thread Starter
kput
(@kput)
Still no luck with the .htaccess however I was able to accomplish this task by using only this code in my single-artist.php file:
<?php
$artist_slug = $post->post_name;
$siteurl = site_url();
$location = $siteurl . '/artists/' . $artist_slug;
wp_redirect( $location, 301 );
exit;
?>
Thoughts?
Thread Starter
kput
(@kput)
This does not seem to work either.
There is the generated wordpress code in my .htaccess file. Should my Redirect 301 go above, below, or within that wordpress generated code? I’ve tried all three but I need clarification to make sure I’m doing this right. I’m appending the code to the .htaccess file in the wordpress install folder which contains wp-content, wp-admin etc. Correct?