CMS Development

RJChauhan
Participant

System Error Page URL issue

SOLVE

Hi I am facing the issue with 404 error page URL

Currently my error page URL is domain/blogs/sdfs

But I need domain/sdasd
No need the "/blog" just after domain name bellow the current url of 404 error page i don't need blogs in this url

RJChauhan_0-1668592539988.png

 

1 Accepted solution
BarryGrennan
Solution
Guide

System Error Page URL issue

SOLVE

Well I don't see anything in that code that'd be doing it.

 

So I'd check the global site header and footer

 

Click on the cog in your dashboard, scroll down on the sidebar to "Website" and under website click "Pages"

Then in the Site Header HTML section you could paste.

 


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

 

 

View solution in original post

0 Upvotes
7 Replies 7
MattPickle
Participant | Elite Partner
Participant | Elite Partner

System Error Page URL issue

SOLVE

I had this same issue just now and fixed it by deleting a strange URL redirect that HubSpot had automatically added for some reaons. It was redirecting https?://www.domain.com(?P <page_slug>(?!/blog)/.*)?$ to http://www.domain.com/blog{page_slug }. I have no idea how it got created, but deleting it fixed the issue.

BarryGrennan
Guide

System Error Page URL issue

SOLVE

I'm not sure I follow. Why does your 404 page have a url at all?

 

If I enter mysite.com/gobbledygook451 and the page gobbledygook451 doesn't exist, the 404 page will show, but the url will remain mysite.com/gobbledygook451

 

Are you using some kind of forwarding in your 404 page template?

 


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

 

 

RJChauhan
Participant

System Error Page URL issue

SOLVE

@BarryGrennanThat's why I am asking for this , I also created new template for 404 error it still redirect me on "blog" as menyioned above
When I enter a wrong URL like "domain.com/sdasd" it redirect me "domain.com/blog/sdasd"
I also attached the template code screenshot below of new 404 tepmlate you can see there are no redirectin etc through code.
Do you have any Idea from where I can URL of this template

RJChauhan_0-1669014537173.png

 

0 Upvotes
BarryGrennan
Solution
Guide

System Error Page URL issue

SOLVE

Well I don't see anything in that code that'd be doing it.

 

So I'd check the global site header and footer

 

Click on the cog in your dashboard, scroll down on the sidebar to "Website" and under website click "Pages"

Then in the Site Header HTML section you could paste.

 


profile2022aBarry Grennan

Freelance HubSpot CMS Developer

Website | Contact | LinkedIn

 

 

0 Upvotes
Jnix284
Hall of Famer

System Error Page URL issue

SOLVE

@RJChauhan I'm also confused by your question - @BarryGrennan is correct that the 404 page will always show the URL of the page that doesn't exist and results in the error.


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Upvotes
RJChauhan
Participant

System Error Page URL issue

SOLVE

@Jnix284  That's why I am asking for this , I also created new template for 404 error it still redirect me on "blog" as menyioned above
When I enter a wrong URL like "domain.com/sdasd" it redirect me "domain.com/blog/sdasd"
I also attached the template code screenshot below of new 404 tepmlate you can see there are no redirectin etc through code.
Do you have any Idea from where I can URL of this template

RJChauhan_0-1669014537173.png

 

0 Upvotes
Jnix284
Hall of Famer

System Error Page URL issue

SOLVE

@RJChauhan  when I try domain.io/jennifer - it redirects to the home page, it doesn't display a 404 or redirect to /blog/jennifer

 

Have you checked your URL redirects to see if you have something setup for /blog?

 

Also, have you verified your templates are configured for the domain?

 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Upvotes