seo

Wordpress permalinks: only using the post_id from the URL

末鹿安然 提交于 2019-12-23 02:42:08
问题 I'm trying to have SEO friendly URLs for my wordpress blog, while still having the flexibility to change a post's title at will. My permalink structure would be like this: %post_id%/%postname% However, I'd like wordpress to just consider the %post_id% from the URL when looking for the appropriate post (sort of like here on stackoverflow) For example: https://stackoverflow.com/users/810/crossbrowser is the same as https://stackoverflow.com/users/810/hello-world I'd like all of these to point

How to make a better URL with .htaccess and multiple parameters?

空扰寡人 提交于 2019-12-23 02:39:11
问题 I have a very long a unfriendly URL an I'm looking to make SEO better for the site: http://www.site.com/sub-site/index.php?page=nameofpage&locale=en_EN I would like to have this instead: http:// www.site.com/sub-site/en/nameofpage all the URLS are hard coded in the links in the form of: <a href="index.php?page=nameofpage&locale=en_EN">link</a> What is the best way to achieve this with mod-rewrite? I find it particularly difficult to achieve: combining both parameters, page and locale Turning

How to get link_to in Rails output an SEO friendly url?

冷暖自知 提交于 2019-12-23 02:36:35
问题 My link_to tag is: <%= link_to("My test title",{:controller=>"search", :action=>"for-sale", :id=> listing.id, :title => listing.title, :search_term => search_term}) %> and produces this ugly URL: http://mysite.com/search/for-sale/12345?title=premium+ad+%2B+photo+%5Btest%5D How can I get link_to to generate: http://mysite.com/search/for-sale/listing-title/search-term/12345 Been trying this a few different ways and cannot find much online, really appreciate any help! 回答1: Tahe a look at this

How do I make my AJAX content crawlable by Google?

会有一股神秘感。 提交于 2019-12-23 02:17:17
问题 I've been working on a site that uses jQuery heavily and loads in content via AJAX like so: $('#newPageWrapper').load(newPath + ' .pageWrapper', function() { //on load logic } It has now come to my attention that Google won't index any dynamically loaded content via Javascript and so I've been looking for a solution to the problem. I've read through Google's Making AJAX Applications Crawlable document what seems like 100 times and I still don't understand how to implement it (due in the most

Google docs ImportXML called from script

瘦欲@ 提交于 2019-12-22 17:52:52
问题 I am using ImportXML in a google docs sheet to aqcuire data from the sistrix api. It works fine but I encountered the limitation of 50 ImportXML commands in one sheet. So I used a script that writes the ImportXML command to a cell (temporary) formula and takes back the resulting value of the cell and copies it to the destination cell. So you can do as much ImportXML queries as you need, as they only appear in one temporary cell in the sheet. The problem here is, that the ImportXML query

Wordpress URLs not returning 404 Pages

て烟熏妆下的殇ゞ 提交于 2019-12-22 14:00:41
问题 I need some help with WordPress following a hack. I've cleaned the hack completely and Google has removed the " This site may be hacked " flag. The hack submitted a plethora of URLs to Google that contain a random string at the end of each valid URL. These show as Japanese links in google search. There are URLs listed that show as: www.example.co.uk/?WGlaVUdsVVNHUnNXVzFzY2xwVE1YbFphVGg1VFZSSmVFOVVTVFZQUjJNOWNFUT14b0g If I click the link, it shows the sites correct homepage rather than showing

Ajax Url accessed by Google

半世苍凉 提交于 2019-12-22 10:59:55
问题 We’re having an issue with Googlebot trying to access a URL on an Ajax function and failing due to some URL encode issue. First of all we’re bit confused why googlebot is trying to access a URL inside a JS function on a JS script. JS code: ajaxFunction(siteid) { $.get(location.protocol + '//' + location.hostname + '/ajax/?ajaxscript=detail&siteid='+ siteid, function() { ... }); } Above function is in a JS script included on our web page which gets called when a link/button is clicked.

ASP.NET Web.sitemap to Generate sitemap.xml [closed]

你离开我真会死。 提交于 2019-12-22 10:49:43
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . Basically, I'm trying to find a way to setup a handler so that will run whenever someone goes to http://www.example.com/sitemap.xml web.sitemap xml. When the user or bot hits that url I want to pull my local Web.sitemap file in my solution and generate sitemap.xml syntax. This syntax must conform to https://www

Adding a hash prefix at the config phase if it's missing

泄露秘密 提交于 2019-12-22 08:07:44
问题 I am now integrating phantom in my Angularjs-based web application. This fine article says that I should call the $locationProvider.hashPrefix() method to set the prefix to '!' from SEO reasons(allow crawlers to intercept the _escaped_fragment component of the URL). The problem is that I haven't though of the earlier, and some of my URLs look as following: #/home . I though perhaps there is a way that I can implant this '!' char into the begging of the URL programmatically(in case it is not

How to add canonical tag the pages that are derived from same link?

北慕城南 提交于 2019-12-22 08:02:36
问题 I am using symfony 1.0.6. In my site I have two URLs. http://newe4s.com/news/articles/view/033/job-news-and-information and http://newe4s.com/news/articles/view/033/job-news-and-information/graduate/Connections-help-graduates-get-jobs Now, all the new articles are using same layout and both above links get same data from database. Google is reporting duplication of contents since it is getting multiple URLs for same content. When I searched for a solution, I got that using "canonical"