View Full Version : 1 of my 3 vanity URLs doesn't work.
JohnnyNapalm
Aug-13-2009, 09:24 AM
So I followed the instructions to create 3 vanity urls. Two work, and one gives me a security exception (not mentioned in the how-to thread). Any thoughts?
A working link: http://www.scottryanphotography.com/contact
The non-working link: http://www.scottryanphotography.com/services
JohnnyNapalm
Aug-13-2009, 02:05 PM
should mention that this is the code that i inserted into top javascript:
var vanityTable =
{
services: "http://www.scottryanphotography.com/gallery/7435913_msEpR",
contact: "http://www.scottryanphotography.com/gallery/7631865_UEHiG",
bigshots: "http://www.scottryanphotography.com/gallery/8920343_xEdf2"
};
function CheckRedirects()
{
if (YD.hasClass(document.body, 'homepage')) // only run this code on the home page
{
// get the path from the current URL,
// convert it to lowercase and remove the leading slash
var path = window.location.pathname.toLowerCase().substr(1);
var newURL = vanityTable[path]; // look it up in our table
// if we found it in the table && newURL is different than where we are
if (newURL && (newURL != window.location))
{
window.location.replace(newURL); // go to the new URL
}
}
}
thaKing
Aug-13-2009, 08:03 PM
is "services" a reserved keyword? you can't use reserved SM keywords in your vanity urls...
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.