1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

custom rewrite rules

Discussion in 'XenForo Questions and Support' started by masterchief, Apr 2, 2013.

  1. masterchief

    masterchief Well-Known Member

  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    After this:

    RewriteEngine On
    Add this:

    RewriteRule ^en/ustream$ /stream [R=301,L]
    There are several assumptions here. I assume that /en/ustream is not an existing directory on the server. And I assume the .htaccess file is in the web root. And I assume your intention is to redirect one URL to the other (ie the old page no longer exists, so all requests are redirected to the new page).
  3. masterchief

    masterchief Well-Known Member

    quite the contrary... en/stream does exist as a page ... and the new page does not exist. I am just trying to manipulate the URL required to access the page.
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Is it a XenForo page? You cannot change the structure of XenForo URLs like that with just rewrite rules. Most web applications are the same way, where the application itself must be made to recognize the new URL such as with an addon, not just using rewrite rules.

Share This Page