StefanRSA Posted November 20, 2009 Share Posted November 20, 2009 I am sure I would be able to do so in my url...? Is it a good thing regarding search engines? And if I can.... How can I? Even if its not a good thing for search engine spiders will I have no problem using it in my section of my site that I want to keep secure Quote Link to comment https://forums.phpfreaks.com/topic/182274-i-want-to-use-an-in-my-url/ Share on other sites More sharing options...
cags Posted November 20, 2009 Share Posted November 20, 2009 What part of the URL do you wish to use it in? To my knowledge it's not a valid character for a domain name for instance, but I believe it is a valid URL character that can appear in a $_GET parameter without encoding first. Quote Link to comment https://forums.phpfreaks.com/topic/182274-i-want-to-use-an-in-my-url/#findComment-961843 Share on other sites More sharing options...
StefanRSA Posted November 20, 2009 Author Share Posted November 20, 2009 I want the url to look something like this: http://www.mydomain.com/Good-Morning!/whatever-next I know I can do this: RewriteRule ^([A-Za-z-]+)/new$ /mypage.php?catid=$1&nav=new [L] To accept multiple Letters and number... How to include a symbol? Quote Link to comment https://forums.phpfreaks.com/topic/182274-i-want-to-use-an-in-my-url/#findComment-961867 Share on other sites More sharing options...
cags Posted November 20, 2009 Share Posted November 20, 2009 I've never used an exclamation mark in an .htaccess Regular Expression, but I cant see it being any differen't to 'normal' patterns so... ^([A-Za-z!-]+)/new$ Quote Link to comment https://forums.phpfreaks.com/topic/182274-i-want-to-use-an-in-my-url/#findComment-961869 Share on other sites More sharing options...
StefanRSA Posted November 20, 2009 Author Share Posted November 20, 2009 Thanks cags. Its working... Do you know how this will affect google? Quote Link to comment https://forums.phpfreaks.com/topic/182274-i-want-to-use-an-in-my-url/#findComment-961879 Share on other sites More sharing options...
cags Posted November 20, 2009 Share Posted November 20, 2009 I can't personally see it effecting it either way, it's a valid character and it's also human readable, I see no reason Google should penalise it. But that's just my opinion, I have no facts or research to back that up. Quote Link to comment https://forums.phpfreaks.com/topic/182274-i-want-to-use-an-in-my-url/#findComment-961888 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.