• Resolved soulzmaster

    (@soulzmaster)


    hi , i have been looking the internet for days without finding an answer for this problem although i feel im very close. ( if im in the wrong section move me please)

    here is what i want , its simple

    i want the page mywebsite.com/fr/page to redirect to (or show the content of ) mywebsite.com/fr/reallyweirdurl but keeping in the browser address bar mywebsite.com/fr/page

    i know it can be done through htaccess rewrites , but i havent yet found the good code for me. i tried through cpanel but it just wouldnt redirect.

    i need help please , thank you very much

Viewing 5 replies - 1 through 5 (of 5 total)
  • There are many redirection plugins that enable you to do this easily. One of them is Quick Page/Post Redirect Plugin, the other one is Speedy Page Redirect and you can find more in plugins directory.

    Thread Starter soulzmaster

    (@soulzmaster)

    well actually the problem isnt quite the redirection, i tried quick/page and it redirected just fine, but instead of showing in the address bar mywebsite.com/fr/page it actually shows mywebsite.com/fr/reallyweirdurl and i want it to stay mywebsite.com/fr/page even after the redirection

    Thread Starter soulzmaster

    (@soulzmaster)

    I found this bit of code`RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_URI} ^/([^/]+)$
    RewriteRule .* https://whatever.example.com/somepath/whatever/%1 [L]` from this page https://stackoverflow.com/questions/14070635/rewritting-url-to-hide-real-page-path
    But I dont know how to adapt it to my case

    Thanks

    Doing that type of rewrite (as opposed to HTTP header redirects) would be very difficult from within a plugin. I would advise the plugin author to *not* implement this kind of functionality. It would make the plugin dependent on a particular web server, unless it detected and adapted to every server. Also, since WordPress itself uses rewrites for friendly URLs, I see the potential for conflicts.
    Rewrites operate on a totally different level than redirects and there’s too much potential for trouble when mixing the two.
    There are many good mod_rewrite tutorials (assuming your are running Apache, as your example indicates) so go for it!

    Thread Starter soulzmaster

    (@soulzmaster)

    i resolved it using an iframe on the page

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘redirection problems’ is closed to new replies.