Support » Plugins » How to rewrite multiple urls to homepage?

  • Hi
    I want to rewrite multiple urls to the home page. I have successfully created aliases for posts and pages using add_rewrite_rule. But I am not getting how to rewrite it for homepage using add_rewrite_rule.
    Suppose my home url is: example.com
    and i want to point example.com/texas/11111 to the homepage.
    I tried using :

    add_rewrite_rule('^/texas/11111','/','top');
     add_rewrite_rule('^/texas/11111','example.com','top');
    add_rewrite_rule('^/texas/11111','index.php','top');

    etc. but it didn’t work.
    Please help

  • The topic ‘How to rewrite multiple urls to homepage?’ is closed to new replies.