• Hi, I am new to ReactPress and thankfully looking forward on what this tool can help for us developers.

    Sorry for this dumb question..
    My client doesnt want the ugly url in hashrouter, is there any other way? or atleast direct it to the homepage of my react app when refreshed or if 404 not found occur

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Imagerockiger

    (@rockiger)

    You can try the advanced setting for your app. It sometimes helps if you re-safe the permalink struktur in your admin: wp-admin/options-permalink.php

    Thread Starter Imagephilipcajurao

    (@philipcajurao)

    Thank you for your response,
    I just added some targe pages that I created in WordPress that has the same path I created in my client side routing. I think this works for me

    Plugin Author Imagerockiger

    (@rockiger)

    I am not sure what you are trying to accomplish? Having the same routes in your React app and your WordPress sound like trouble to me.

    Thread Starter Imagephilipcajurao

    (@philipcajurao)

    Im getting a 404 error when refreshing or manually inputting the slug in the address bar. So I created the page manually on wordpress with the corresponding name of the slug to the page then added it to the target pages.

    @philipcajurao I have the same problem, I enabled Routing: Use clean URLs, but the problem remains the same, I see you tried something, but I did not understand, how did you solve the problem?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘BrowserRouter 404 Not Found when refeshing and manual input of slug’ is closed to new replies.