开发者

Making a $_GET search URL (containing a term) SEO safe without affecting search results?

开发者 https://www.devze.com 2023-04-06 23:16 出处:网络
I have an existing PHP/MySQL search for my website (which is in production at the moment). Visitors can search the website via a $_GET form (by entering the search term).

I have an existing PHP/MySQL search for my website (which is in production at the moment).

Visitors can search the website via a $_GET form (by entering the search term).

The $_GET URL looks like -> http://localhost/search/the term (the rea开发者_如何学Pythonson I'm using $_GET is so the search results can be easily directed too. Also because I have pagination on the search php file which is where $_GET['term'] becomes usefull (accross the various pages)).

I'm using mod_rewrite for SEO friendly URLs accross the whole site, so I'm worried that having the search URL like this would affect the consistent SEO URL flow of the website...because the visitor could easily enter non alpha-numeric characters....

Appreciate all responses.


Visitors can search the website via a $_GET form.

That's all right.
BUT search engines DO NOT use your forms!

So, there is nothing to worry about.

0

精彩评论

暂无评论...
验证码 换一张
取 消