seo

Create SEO permalinks using PHP without .htaccess

∥☆過路亽.° 提交于 2019-12-31 07:06:51
问题 Currently, my page URLs look this this: http://ourdomain.com/articles/?permalink=blah-blah-blah I want to convert these to: http://ourdomain.com/articles/blah-blah-blah How can I accomplish this using PHP but not with .htaccess? 回答1: How can i accomplish this using php but not with .htaccess.. You can't. You will need to tell the web server how to deal with URLs that don't physically exist. In Apache, that is done in the central configuration or in a .htaccess file. If your server already

How to deal with “#” in a query string in mod_rewrite?

狂风中的少年 提交于 2019-12-31 04:31:07
问题 I asked this question about rewriting old "ugly" links into seo friendly ones. I need to "extract" some information after the "sharp" symbol in some urls. I've created a regular expression to it but it can't seen to work. After my question, I created this logic for this url for example, script.php?mode=full&id=23 : RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /script\.php\?mode=full&id=([0-9]+)\ HTTP/ RewriteRule ^script\.php$ fix_old_urls.php?phpfile=script2&id=%1 [NC,L] But I'm working in a

.htaccess RewriteRule not working, need to generate a URL friendly

若如初见. 提交于 2019-12-31 03:55:07
问题 I have this dynamic link: http://www.nortedigital.mx/article.php?id=36175&t=dobla_las_manos_el_snte__avala_reforma_educativa and I need to convert in URL friendly like this: http://www.nortedigital.mx/36174/se_enriquecio_elba_en_sexenios_del_pan.html and i have this RewriteRule: RewriteRule ^([^/]*)/([^/]*)\.html$ /article.php?id=$1&t=$2 [L] but doesn't work. Please, anybody can help me? 回答1: You must capture the query string in a RewriteCond and use that in the RewriteRule RewriteEngine On

How do I generically implement URL-rewriting in a MapRoute method?

一世执手 提交于 2019-12-31 03:22:06
问题 I am attempting to rewrite URL's from C#'s Pascal-case to SEO-friendly format. For example, I want something like /User/Home/MyJumbledPageName to look like this: /user/home/my-jumbled-page-name // lower-case, and words separated by dashes Here is my method for converting each "token" in the URL: public static string GetSEOFriendlyToken(string token) { StringBuilder str = new StringBuilder(); for (int i = 0, len = token.Length; i < len; i++) { if (i == 0) { // setting the first capital char to

Lightweight open source CMS - current situation

倾然丶 夕夏残阳落幕 提交于 2019-12-31 00:57:18
问题 It happened that I need to pick up PHP based open source CMS. I did a small research and found many candidates. CMS made simple seems to be right choice, but I am not sure what's the current state, I know it was widely used time ago. I need it to be fully compliant with web standarts, lightweight (especially interface). It needs to be as simple as possible - basically just style and page content editing (news, maybe some image gallery) is enough. Sure content and style have to be separated

SEO optimization for content generated by Javascript?

帅比萌擦擦* 提交于 2019-12-30 07:29:21
问题 I have created widgets for my website(xyz.com), which can be embedded in different websites. Let's say I embed a widget which is a photo album, in another website, abc.com. The content is residing on xyz.com but is pulled via Javascript into abc.com. Will the content generated by the widgets (Javascript) on abc.com will be indexed by search engines? 回答1: Google will not index anything that is not visible when a page is loaded with JavaScript disabled. There is more information in this similar

Facebook and Crawl-delay in Robots.txt?

牧云@^-^@ 提交于 2019-12-30 04:07:25
问题 Does Facebook's webcrawling bots respect the Crawl-delay: directive in robots.txt files? 回答1: We don't have a crawler. We have a scraper that scrapes meta data on pages that have like buttons/are shared on FB. 回答2: No, it doesn't respect robots.txt Contrary to other answers here, facebookexternalhit behaves like the meanest of crawlers. Whether it got the urls it requests from crawling or from like buttons doesn't matter so much when it goes through every one of those at an insane rate. We

How to run PhantomJS as a server and call it remotely?

梦想与她 提交于 2019-12-30 00:39:09
问题 This is probably a very basic question. I would like to run a headless browser PhantomJS as a server but not as a command line tool. Once it is running I would like to call it remotely over HTTP. The only thing I need is to send a URL and get back the HTML output. I need it to generate HTML for an AJAX application to make it searchable. Is it possible ? 回答1: You can run PhantomJS perfectly fine as a webserver, because it has the Web Server Module. The examples folder contains for example a

How do I stop Wordpress from inserting a noindex meta tag?

梦想与她 提交于 2019-12-29 08:24:15
问题 I'm trying to get my website to be indexed by search engines. According to this, something from Wordpress is injecting a meta tag that's preventing search engines from crawling my site: https://aw-snap.info/file-viewer/?protocol=secure&tgt=chrispokey.com I'm beginning to think it's something to do with the wp_head(); function. What next steps can I take to remove the noindex tag that's somehow getting inserted in my website's header section? Thanks! <?php if ( is_singular() ) wp_enqueue

Will content loaded by AJAX affect SEO/Search Engines?

白昼怎懂夜的黑 提交于 2019-12-29 05:57:29
问题 i wonder if content loaded dynamically by AJAX affect SEO/ability for search engines to index the page? i am thinking of doing a constantly loading page, something like the Tumblr dashboard where content is automatically loaded as the user scrolls down. 回答1: Short answer: It depends. Here's why - say you have some content that you want to have indexed - in that case loading it with ajax will ensure that it won't. Therefore that content should be loaded normally. On the other hand, say you