Use of PHP generated sites in SEO? [closed] - php

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 11 years ago.
Improve this question
I've got a site that is based around a contact form. This form is generated according to the variables passed in the URL, and the information passed is put in headers in the body, and also in the title. Additionally images are customized, so basically the whole content is changed according to these variables.
So I've run a sitemap generator, and it's actually generated lots of these www.site.tld/me.php?a=hi&b=pie, www.site.tld/me.php?a=hi&b=chocolate, www.site.tld/me.php?c=hi&hello.... you get the point.
So, my question is: is it smart to use this to my advantage, include these in the sitemap and customize them for SEO, or should I just ignore it and omit it from the sitemap?

In general having dynamic urls is okay, but you don't necessarily want them indexed for SEO purposes. In general its better to have a well organized url structure, as its seen to be more appealing. (i.e. site.com/article/sports/baseball123 is better than site.com?id=123433). So depending on your content (whether its static or dynamic) you may want to move to that type of a url structure, and have your pages indexed. On the other hand if you need to keep dynamic urls (for some reason) and depending on the nature of the content, it may be best to leave them out of the equation from an SEO perspective. It ultimately comes down to what you're serving from these pages.

Search engine friendly urls by using apache rewrite module search apache mod_rewrite in google there are many ways to do this and there are some ways that work much better than others. Google will index your site based on the content on the page rather than the url or any meta information. Using the mod rewrite makes it easier for your viewers but as far as search engines are concerned it dont really matter. Hope this helps

Related

301 redirect to a php redirect - bad for SEO? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 4 years ago.
Improve this question
So my company has a huge website with over 7000 static pages. I have been tasked with creating a new website and attempting to account for all of the content. One way in which I've been able to do that, is by using a hash in the url to direct an AJAX call to pull content in dynamically. While this has effectively been able to eliminate many of the pages, I've been concerned with losing the site's SEO rankings, hence: redirects.
Since the new URL's have the potential to become complex (not to mention they all have a hash symbol in them), I came across one user's answer on here on how one might implement a 301 to point to a "redirector.php" and then create a php formula to point the user to the final destination. (https://stackoverflow.com/a/1279955/2005787)
This method has been working beautifully, however, my main concern is that by redirecting someone to a "redirector.php" file, you are losing all of your SEO rankings, since the final location is two steps removed from the original address.
So first, can I implement the "redirector.php" method without destroying my SEO rankings?
Second, if the "redirector.php" method does, in fact, hurt my rankings, then is there an alternative way to generate complicated redirects?
Thank you!
Ideally you would just have one redirect. Though Google will follow more than one and suggests 2. Maximum 3. So you could be okay with your plan.
https://youtu.be/r1lVPrYoBkA

New starter: dual language site development with php [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I'm new to using php (and its been I while since I've coded) ... but anyway, I want to create a website that uses two languages.
I've been reading up on google's best practices (Multi-regional and multilingual sites), but I'm yet to find something that can help me with the actual development.
The site will contain at least 30 pages and need to be compatible with all the major browsers.
Really appreciate some advice on this. At the moment I don't no whether to create a page for each language (because lang='' doesn't appear to be compatible with all browsers), or hide and show div's on page load or dynamically load the content with php ... what is the best practice?
Apologies if this is a little generic ...
Thank you in advance!
create a page for each language
This is sensible.
(because lang='' doesn't appear to be compatible with all browsers),
Browsers don't generally need to care what language the page is written in. They just need to display the content to the user, so that doesn't matter.
Some screen readers might look at lang to determine which pronunciation guide to use, but few other tools used directly by humans will care.
Language can influence which character encoding you use (although in most cases the answer is "Just use UTF-8"), but that is specified independently of the lang attribute.
or hide and show div's on page load
This sounds like you will have a page that just jumps between languages, unless JavaScript is available in which case some of it will be hidden from the user. I wouldn't do that. Have sensible documents.
or dynamically load the content with php
Dynamically generating the content server side is one way to produce pages in multiple languages. It is still sensible to give them independent URIs so users can link to specific ones.

Website using just index.php and database [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I'm working on creating an image gallery with just the index.php
The users can switch between images by using "next" or "previous" buttons.
Is this healthy for the server ?
Does this method harm SEO as no html pages really exist except for a blank template. ( All the SEO related data are in the mysql DB)
Thanks in advance.
The practice of having a single page website will not by default harm your site's page rank, although it does add some issues.
Only one URL - usually sites have /about, /contact, /gallery, /we'r'awesome, etc. You get one. (You could use hash tags as a practical workaround, but this wont do much for SEO - if you designate each hash tag as unique content and it all points to one page of the same content, this can actually hurt you)
Best SEO practice is to have one set of content/keywords per page. With a one page sit, you only get one go at it.
Additionally, a single page may take longer to load (depending how you set it up), and be less intuitive to navigate (gain, depending how it's set up).
Check out this article for some more points.
Yes it can harm SEO, but a lot of things can so that should be the last thing you focus on since Google is all that matters now and it changes often.
You can fix that by adding "tutorial" and "about" pages and what not anyways.
Healthy for the server depends on your code and the server and the amount of visitors and how you store the images etc etc etc etc.

Does a sitemap need to contain linked static pages? [closed]

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 10 years ago.
Improve this question
I want to generate a sitemap for my dynamic content. Do I need to also include the static pages which are already linked throughout my site? I want to just make a script which will query my inventory and then generate sitemap based on that.
Want to do it with PHP.
After submitting the sitemap, I'm hoping google will still find my static pages even if they are not listed in the sitemap!
Thank you
-D
If your files are linked then Google will find them, however, personally I like to include all of my pages (static and dynamic) in my sitemap. This just ensures that Google can see everything.
There are several websites you can use to generate sitemaps, this is one that I like:
http://www.web-site-map.com/index.php
You can then add to the sitemap, any pages that are not linked to from the submitted document.
Hope this helps
UPDATE
Google DOES index any pages that are linked within your site, however, a sitemap makes this process more efficient and effective. At the end of the day, it is up to you whether or not you use one. As they are so easy to build, I don't see why you wouldn't as it will not damage your SEO, it will only help it, if anything.
The important thing to note is that any pages that are not linked, Google (and any other crawlers), will not find! This is where sitemaps are very useful.
To summarize, sitemaps are not absolutely necessary, but they are strongly recommend!

What free CMS can do the following [closed]

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 12 years ago.
Improve this question
I'm looking for a CMS I can embed inside an already existing php website. Basically I just want something that I can make blog posts from and then those blog posts will show up inside my website's content div. I'm really not looking for anything too fancy but don't really want to hack wordpress. Suggestions?
Wordpress isn't that bad an idea for this: You can access WordPress content from within a PHP application on the same server by including the WordPress bootstrap. You can then list and/or fetch the blog entry / article / page you need.
See e.g. this SO question and especially this one (Galen's top voted answer shows the whole process of fetching a page.)
You could use Osmek's free account. Osmek integrates easily into an existing application since its centrally hosted and requires no database setup. Check out this video http://osmek.com/video
Disclaimer I work for Osmek, so I am biased. But feel free to ask me any question.
Joomla makes it about as simple as possible and will leave room for the day a client calls up and asks for a more advanced feature. Installation into a folder is something pretty common, too.
There are multiple options which are prepositioned for embedding. Most promising seems "PHP News System" http://phpns.alecwh.com/, though I haven't used it and cannot qualify it much. But it claims the embedding process is just a single php call, which still sounds acceptable.
If you want just a blog, I'd recommend Serendipity over Wordpress. Firstly because of the better security track record, and second because it specifically has a switch for embedding it within an existing layout; so unlike WP doesn't need as much workarounds.

Categories