Hostjar.io is designed specifically for hosting static websites, which means it does not support server-side URL rewriting. URL rewriting typically requires server-side processing, which is not available on static hosting platforms like Hostjar.io.
Why URL rewriting isn’t supported
- Static hosting limitations:
- Hostjar.io serves static files like HTML, CSS, JavaScript, and images.
- URL rewriting is a server-side feature that requires dynamic processing, which is not supported on static hosting.
- No server-side processing:
- Static hosting does not support server-side technologies like
.htaccess
(Apache) orweb.config
(IIS), which are commonly used for URL rewriting.
Alternatives to URL rewriting
- Use client-side routing:
- For single-page applications (SPAs), use client-side routing frameworks like React Router or Vue Router to handle URL navigation.
- Create static redirects:
- Use HTML
tags or JavaScript to redirect users to the desired URLs. For example:
<meta http-equiv="refresh" content="0; url=https://example.com/new-page">
- Alternatively, use JavaScript:
window.location.href = "https://example.com/new-page";
- Host dynamic content elsewhere:
- If your site requires URL rewriting or other server-side features, consider using a hosting provider that supports dynamic content (e.g., shared hosting, VPS, or cloud hosting).
Need help?
If you’re unsure how to proceed or need assistance, feel free to:
- Email us at hello@hostjar.io.
- Click the chat button in the bottom-right corner of the dashboard to connect with our support team.