Jump to content
CosmicMeatZoo

Force URL on single Page?

Recommended Posts

Does anyone know if it's possible to force a specific url onto a single page in squarespace without using a dev site, javascript, or hiring someone to do it? If so, what is this called so I can find more information?
SQSP doesn't allow for the slug characters needed. Have a strange situation where a single web needs to match an old address exactly. Redirect doesn't work for this. I was told by Squarespace support that this was possible with CSS. The refused to give me any more information. 

Share this post


Link to post
Share on other sites

I don't how css can do that as its presentational, the most it can do is show text using :before and :after a link address.

There is a base tag which would have the http domain and default root folder, you then must have relative paths without domain and root folder. https://www.w3schools.com/tags/tag_base.asp

Edited by dsonesuk
  • Thanks 1

Share this post


Link to post
Share on other sites
3 minutes ago, dsonesuk said:

I don't how css can do that as its presentational, the most it can do is show text using :before and :after a link address.

They had directed me to the custom CSS page and their forum (no one has responded) and gave me zero information beyond that. The plan this is on doesn't cover Javascript either. If you're aware of other ways this can be done on a platform, I'm open to suggestions. At this point I've talked to so many people I'm not sure this is possible without having the entire site redone elsewhere. 

Share this post


Link to post
Share on other sites

The only option I can think of is mod_rewrite, you can make it create a url to you needs (within reason) but it will still go to original url in the background. Similar to a url with lots of query string

http://example.com/index.php&page=dogs?type=greyhound

Mod_rewrite can make the url address appear as

http://example.com/dogs/greyhound

If that's any help.

  • Thanks 1

Share this post


Link to post
Share on other sites

Ah yes, but the mod-rewrite would also be a form of redirect, am I correct? I spoke with a back-end developer who said this was possible within the GoDaddy files, however, if the software isn't recognizing the redirect it won't be able to parse the mod either.

Share this post


Link to post
Share on other sites

The software that's parsing the info from the link is written in LabVIEW, which I can neither see nor am I familiar enough with it to say what's occurring. I know the page address is hardcoded into the software request, it sees that the page has been moved with a redirect, but it can't gather any more info from the page beyond that. When the code is changed to request from the new address it has no problem parsing the info it needs. With the redirect it  displays nadda but gives no error. 

Share this post


Link to post
Share on other sites

No! the address you see in browser address is changed, it still goes to original address, but! if you are setting the original address to a redirect address then yes!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...