• Resolved Jellico

    (@catsfoto1se)


    Hi all!

    I’m using elementor andhttps://plugin-planet.com/usp-pro/ usp pro, and have an issue(design) with paths.

    The site url is example.com
    The forms created in usp is in example.com/usp_pro
    The issue is that if I call/open a page there it will be: example.com/usp_pro/register_your_pet_2/ but I want it to be/say example.com/register

    The issue is that the webpage must know the true address, otherwise won’t the graphics or submission work (have something with css and scripts to do)

    I’ve looked around little and was thinking about a rewrite (the easiest would have been an frame (not iframe) but it’s highly discouraged by SEO) but some people had issues with those and submission pages.

    • This topic was modified 4 years, 8 months ago by Jan Dembowski. Reason: Moved to Fixing WordPress, this is not an Developing with WordPress topic
Viewing 5 replies - 1 through 5 (of 5 total)
  • If your webserver is Apache, then a rewrite (without redirection) might “translate” the address, so that the visitor goes to /register/ but WordPress receives the full path.
    This might not totally hide the address from the visitor. If there are any images or other assets (like JavaScript files) located under the same directory location, then those would “shine through”. Also beware of any relative URL references: If you have anything in your page that is referring to “..\somefile.txt” then those links would suddenly stop working.

    Also: Since you’re using a paid product for the form itself, make sure to get in contact with their support, too. We can’t help you here with products that are not available for free via www.remarpro.com.

    Thread Starter Jellico

    (@catsfoto1se)

    @tobifjellner I only mentioned the apps I’m using (and there are free version on WordPress)..

    I was actually more interested how a rewrite would look in the .htacccess file, since WordPress already are using rewrite.
    Don’t want them to collide or something, and I don’t know how to write a working rewrite..

    You could try something like
    Alias "/register" "/usp_pro/register_your_pet_2/"

    I’m not sure if it would work, but you sure can try. Make sure that this directive is included in .htaccess before the WordPress rewrite rules.

    Thread Starter Jellico

    (@catsfoto1se)

    I’ll test that, thx

    Thread Starter Jellico

    (@catsfoto1se)

    I actually solved it with a little JavaScript that I found… Somewhere..
    Thought I should share it..

    <script>       window.history.replaceState('','','/');
    </script>

    This replaces the url in the browser with the base url.
    So if I’m visiting https://example.com/test/testagain/finalpage

    It would only say: https://example.com in the address field..

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Hide / rewrite url ?’ is closed to new replies.