Jump to content

Portfolio URL redirect

Go to solution Solved by nick_sh,

Recommended Posts

Hi everyone,

I've not found a way to do this, but maybe some bright button out there has... or can.

I have a portfolio page (/projects) with individual projects inside (e.g. /projects/project-one). I'm not mad on the main portfolio page layout options, so I created my own out of a regular page (/work), containing links to the individual projects.

I'd like to disable the /projects so it isn't discoverable, but that also disables to individual projects, so that's a no-no. If I could use a url redirect (/projects -> /work 301) from /projects to /work, that'd be great, but it doesn't work either.

Does anyone out there understand what I'm going on about and, better still, know how to help?

Cheers, Daniel

Link to comment
  • Replies 3
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

  • Solution

There are 3 options:

1. You can try redirecting with js from portfolio page itself, not sure how it's treaded by Google though. Try adding to code block:

<script>
  window.location.replace('URL')
</script>

2. Alternatively, move portfolio page to not linked, and hide it from SEO. 

3. You can add regular sections to portfolio page, so you can just use those and hide the actual portfolio section.

Link to comment

Options one and three both worked, thanks again @nick_sh, but I went with option three as there are no SEO headaches.

For anyone else struggling with this, it's simpler than you might think. All you need to do is paste the code below into your custom css and swap your default portfolio section for mine.

/* hide Work portfolio section */
section[data-section-id="65c384eab6eba65f3d04fa51"] {
  display:none;
}

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.