Jump to content

Force URL on single Page?


CosmicMeatZoo

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. 

Link to comment
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
Link to comment
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. 

Link to comment
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
Link to comment
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. 

Link to comment
Share on other sites

Create an account or sign in to comment

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

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...