keywords in the page url for best seo
<p>hello all,</p>
<p>i am working in the keywors structure of a web and i have the following doubt:</p>
<p>1) if i want to target these keywords: great food madrid</p>
<p>and my website is: http://www.madridlive.com</p>
<p>i do not know if i should keep either:</p>
<p>option 1: page url: www.madridlive.com/great-food-madrid</p>
<p>or</p>
<p>option 2: page url www.madridlive.com/great-food</p>
<p>i do not know if the search engines "understands" madrid in "madridlive", therefore i can avoid the "madrid" keyword, dicarding option 1 and going for option 2. additionally i avoid duplication of the madrid keyword&nbsp; that can be seen as redundancy and also have a shorter page url.</p>
<p>thank you very much and sorry for such a question but i am new in this seo field...just the excellent seomoz's seo guide for beginners!</p>
<p>best regards,</p>
<p>antonio</p>
<p>i think that the crawler understand well the keyword madrid in the domain madridlive, for this you can avoid the repeat another time rhe same word.</p>
<p>&nbsp;</p>
<p>www.madridlive.com/restaurant/great-food</p>
<p>&nbsp;</p>
<p>for me is also better.</p>
<p>&nbsp;</p>
<p>ciao</p>
<p>maurizio</p>
Yes - the strategy is that Google's algorithms put less weight toward linkbuilding and more toward content considered "useful" by users. You should focus in investing in unique content that encourages visitors to share your links via social media and other sources, as opposed to straight old link building. If you diversify your site portfolio you wil encourage more long term growth and remain safe in SEO listings. Don't forget to include Google Webmaster to check the keywords that you are ranked for. Webmaster is a great tool to analyze your site's keyword optimization and links that point to your site(s). try a quick search on google with your key words. Google has a strict [policy](https://support.google.com/local-guides/answer/7400114?hl=en) on the kinds of content that can be left in a Google Review.  


Here is a list of content not allowed in Google Reviews and on Google Maps.  


**Spam and Fake Content**  

In the world of Google Maps, spam and fake reviews are quite common to find. Some ways to tell if a review is spam or fake is by checking the profile a review came from. You can see the history of reviews left on the profile. If someone left 30 reviews for 30 different law firms, they are either extremely unlucky or fake.


**Off-Topic Content**  

Reviews should be about a personal experience involving the specific location. Reviews should not turn into a forum or a personal rant.


**Restricted Content**  

The content in reviews must uphold the laws in the area. Links to landing pages pointing to restricted goods, email addresses, or phone numbers to purchase illegal products and promotional offers for restricted products are against Google policies. Images of menus and images where alcoholic beverages are present but are not the main focus are fine.


**Illegal Content**  

Any images that infringe on anyone's legal rights, including copyright, sexual abuse imagery, dangerous or illegal acts, illegal products and services, graphic images or content backed by terrorists are against Google policies


**Terrorist Content**  

Terrorist organizations are not permitted to use Google review service for any reason, including recruitment. If posting content related to terrorism for an educational purpose documentary, scientific or artistic purpose, be sure that the audience understands the context.


**Sexually Explicit Content**  

All sexually explicit material is not allowed. Any content relating to children will be removed but reported to the National Center for Missing & Exploited Children and law enforcement.


**Offensive Content**  

Any content containing obscene, profane, or foul language will be removed.


**Dangerous & Derogatory Content**  

Threats or advocates for harm to themself or others will be removed. Harassments, intimidation, or bullying will be removed. Any review that incites hatred promotes discrimination of an individual or group for ay reason will also be removed. 


**Impersonation**  

Individuals on Google Maps are not allowed to mislead or deceive others with false representations. Do not claim to represent anyone or any company unless you were given the authorization to do so.


**Conflict of Interest**  

Do not review your own business. Do not leave reviews about current or former employees. Do not post content about a competitor to manipulate their ratings. http://maps.google.com/maps?f=q&source=s\_q&hl=en&geocode=cvxee4idb0hvfs0v8wedujge-q&q=business+type+dinner&sll=32.706133,-117.169576&sspn=0.013379,0.027788&ie=utf8&radius=0.81&filter=0&rq=1&ev=zi&hq=business+type+dinner&hnear=&ll=32.710142,-117.169576&spn=0.013379,0.027788&t=h&z=16 don't do it! make one! they are simple to make. go to gumbopages.com for the best creole and cajun recipes online....i live down here. it's for people who want to make stuff right with good ingredients. the gumbo du monde on that site is better than any i've ever had out at restaurants for true! take a look at the menu starter project for a proper menu structure.

ionic start myapp menu

a menu should exist at a root point, and not be included in multiple pages. try this and try to modify accordingly -



```
<?
//content is the array of titles which comes from the content.php page or the entire code can be put in the content.php
$content = array('title1 - This is the Homepage','title2 -Find new friends','title3 - Get your visa cleared now','title4 - bark about your wife here','title5 - Dont have kids yet','some other page');

$arr = explode('/',$_SERVER['PHP_SELF']);

$current_page = $arr[count($arr)-1];
//list your pages here
$pages  = array("1=>index.php","2=>friends.php","3=>nicks.php","4=>rent.php","5=>test.php");
for($i = 0; $i<count($pages);$i++)
{
	if($pages[$i] == trim($current_page))
		$pages_index = $i;
	else $pages_index = 6;
}
//This will echo the title
echo $content[pages_index];
?>
```

ask,if you stuck up somewhere. JavaScript *itself* has nothing built in for handling query string parameters. 


Code running in a (modern) browser you can use the [`URL` object](https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams) (which is part of the APIs provided by browsers to JS):





```
var url_string = "http://www.example.com/t.html?a=1&b=3&c=m2-m3-m4-m5"; //window.location.href
var url = new URL(url_string);
var c = url.searchParams.get("c");
console.log(c);
```









For older browsers (including Internet Explorer), you can use [this polyfill](https://github.com/ungap/url-search-params) or the code from the original version of this answer that predates `URL`:


You could access `location.search`, which would give you from the `?` character on to the end of the URL or the start of the fragment identifier (#foo), whichever comes first.


Then you can parse it with this:





```
function parse_query_string(query) {
  var vars = query.split("&");
  var query_string = {};
  for (var i = 0; i < vars.length; i++) {
    var pair = vars[i].split("=");
    var key = decodeURIComponent(pair[0]);
    var value = decodeURIComponent(pair[1]);
    // If first entry with this name
    if (typeof query_string[key]  "undefined") {
      query_string[key] = decodeURIComponent(value);
      // If second entry with this name
    } else if (typeof query_string[key]  "string") {
      var arr = [query_string[key], decodeURIComponent(value)];
      query_string[key] = arr;
      // If third or later entry with this name
    } else {
      query_string[key].push(decodeURIComponent(value));
    }
  }
  return query_string;
}

var query_string = "a=1&b=3&c=m2-m3-m4-m5";
var parsed_qs = parse_query_string(query_string);
console.log(parsed_qs.c);
```




You can get the query string from the URL of the current page with:



```
var query = window.location.search.substring(1);
var qs = parse_query_string(query);

``` for example, you can disable right click on images at your page:

```

$(document).ready(function() {
    $("img").on("contextmenu",function(){
       return false;
    }); 
}); 

```