As Phantom indicates, the easiest way would be to define an alias or function within your shells initialisation files that do this.
Have a look at my sample
.kshrc file. There is a "cd aliases" section there.... Obviously this is for the Korn shell but most of it will work with bash too.
As pressy indicates, setting up environment variables with commonly navigated directories is also a good idea. Define and export them within your .profile (or .bash_profile, whatever), e.g.
export WEB=/path/to/my/webroot
Then, to edit a file, for example, all you have to type is
vi $WEB/index.html
Cheers
ZB