0

I want to create an alias url for my homepage so that it can be accessed at / but also /alias

I've set up a rewrite rule but it just causes a redirect to /

add_rewrite_rule(
    '^alias?',
    'index.php',
    'top'
);

Anyone know what the problem is? I've created aliases for other pages and posts which work fine but for some reason when you want to point to the homepage it just redirects instead of doing a rewrite

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.