• Resolved mplusplus

    (@mplusplus)


    Hi there
    – My main logic page is at “site.com/main-page/”.
    – What I need is: A visitor can request whatever URL (not an existing physical file or folder) and while they see their requested URL in their browser address bar, the content is served from our main processing page at “site.com/main-page/”
    – Adding this line in .htaccess did not work and visitors get a 404 error.

    RewriteRule ^.$ /main-page/ [L] #custom line added
    RewriteRule ^index\.php$ - [L] #default line. Custom code added above this.

    What are the alternatives available in WordPress to achieve what I need?

    Thank you.

    • This topic was modified 2 years, 8 months ago by mplusplus.
    • This topic was modified 2 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How to rewrite URL this way in WordPress?’ is closed to new replies.