Redirecting pages with symbols in name

How do I redirect pages with symbols in their names to external URLs? For example, I need to redirect /help.aspx to another site. I can’t create a page nor router with a period in the name. Any ideas?

It’s easy to do for pages without periods in their names. I just create a blank page and run a little redirection code when the page loads.

Thanks for any help!

You can use the Wix Location API for that matter. Should the issue persists, please send us a site URL as an example so that we can better understand what you were referring.

Have a good day,

That’s how I’m doing it for URLs without periods in their name. I simply do this in the page code:

import wixLocation from ‘wix-location’;

$w.onReady(function () {“https://”);

It works great, however, this code is placed in the original page I want to redirect. The case I’m asking about is how to do this when the page you want to redirect contains a period in the name. For example, “/Help.aspx”. Wix will not allow you to create a page with this name because it contains a “special character”, i.e., the period. Therefore, I have no place to put the above code for pages with special characters in their URL.

Can I put the code in the “Site” tab and that will get called for all page hits to the site, even ones with special characters in them? I can then look at the url requested there to determine if I need to do a redirect?


  • Troy

Hi Troy,
Can you please post the full URL so that I can test it on my end?
To which URL were you trying to redirect?
In order to know a page URL of your Wix site you can follow the instructions here .


I can’t. That is the point I’m trying to make. It is impossible to CREATE the page with the name I need.

Try it:

  1. In the editor, go to manage pages.
  2. Click “Add page”
  3. Type help.aspx for the page name.
  4. Click done.
  5. Click the three dots menu on the page.
  6. Choose “Page SEO”.
  7. In the “What’s the page URL?” field, type “help.aspx”.

Notice you will encounter an error that says “URLs must be more that one character and can’t contain symbols or emojis”.

So, since I can’t create a page with the correct URL I need to redirect, I can’t use the code I showed you in my last post. I’m asking is there another way to hook the moment when Wix receives a request for a URL that contains a special character? It can’t be done with page code, apparently.

  • Troy


Have you found any solution for that? I have just met the same problem.