Mobile app version of vmapp.org
Login or Join
Mendez628

: Is it OK to use only special characters in an URL segment? I wanted to separate a section of my website using an URL segment that contains a special (but URL-safe) character like hyphen or

@Mendez628

Posted in: #SiteStructure #Url

I wanted to separate a section of my website using an URL segment that contains a special (but URL-safe) character like hyphen or tilde, so that some pages would like this: example.com/-/about or example.com/~/about

Is there any problem (technical or otherwise) this (using only a special character - or several - in an URL segment) may cause down the line?

Note: I moved the context to another question - this seems like a separate concern that I'm still curious about, as I've never really seen it done on a website.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Mendez628

1 Comments

Sorted by latest first Latest Oldest Best

 

@BetL925

I think you could do it without any major problems. The only things I can think of that could go wrong are:


If you need a directory with that name on your server, it may be difficult to create and work with. Command line programs use the dash (-) to specify flags and special arguments. They don't like working with files and directories that start with a dash. The tilde (~) often means your home directory and it may get expanded to that by your shell instead of being treated as literal.
That isn't a "normal" practice and some users may find that it looks odd enough that they might not use your site.
Those are not keywords, so there is no SEO benifit

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme