URL Question for SEO
I have my galleries named like the following:
Digital | Layouts
The seo is renaming them to:
My question is...I don't want the 7c in the url, I know it's converting the | character....is there a way to have it just strip out that character instead? So it looks like:
Thanx in advance
Possibly try making the lines in the pp-inc.php file for the ppsafeurl function this
Hey Chuck, this actually works quite well for me as I have a lot of () in titles.
However, any reason if i were to add & to that list, that it wouldnt rewrite the url with a '-' or '_' between the other words?
i.e. : mr. & mrs. smith
without the change to the str1/str2 rewrites to:-mr26-mrssmith.html
with it, in the str1/str2 it gets rewritten to -mrmrssmith.html
Is there a reason it doesnt add a _ or a - for periods and the ampersands?
actually i see why it does that now, but not sure i have the means to correct it lol.
it only allows alpha numeric characters in the title
The change to the lines I posted above should remove | and I can add & to that
Ya, i added &, but it doesnt space properly after that. where there is an 'and' it should technically hyphenate, or underscore replace. no biggie i suppose.
Right but you probally did not do the replace right for what you want. Try this it might be more to your liking.
hey chuck, that's what i tried and ended up with:
just to add, the original title is Mr. & Mrs. Smith
So i'd expect the periods would be removed and I'd be left with
For SEO, we should really be dropping "an, the, and, a" and whatever articles search engines dont want to see.
Thanx for that Chuck, it took the 7c out of the url, but now there is no - between the words:
Is there something else I need to do to still have the dash in there?
I tried changing the code like you posted to xtremetoonz
**edit, nm I tried putting a space either side of the | in the first string and it seems to have done the trick lol :)
Interesting its probally doing the proper thing to begin with probally later on the space hyphen space is being stripped as a non alpha numeric character.
Yeah....I didn't even think it was going to work LOL just tried it on a whim
yeah quite strange you have to include the spaces but whatever works.
Chuck is this something you can include on a "todo" list for future releases? I'd like to see any special characters stripped, or at least the ability to manage this from the admincp and add extras if needed? Thanks for trying :)
well thats already on the todo list as we need to expand upon it for different languages etc etc
I have patched Michael's original function quite abit since 7.0 was released so we are looking at an expanded function.
|All times are GMT -5. The time now is 02:49 PM.|
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0