 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Asvin Balloo's Blog: SEO friendly URL in PHP
by Chris Cornutt July 24, 2008 @ 11:14:40
Asvin Balloo has posted a quick look at making the URLs of your website a bit more "pretty" and SEO-friendly.
When I started implementing mod_rewrite in websites I had a problem in PHP as how to make a SEO friendly URL. All tutorials were geared towards how to implement mod_rewrite, about modifying .htaccess files, but none treated how to make the urls friendly with dynamic content.
He shares a function that he found that helped him a great deal - a method called friendlyURL. It changes a bit of text into a more friendly version of itself ("this is a test" becomes "this-is-a-test") that can be used in anything you'd want. An example could be in automatically generating links to other pages on your site that search engines can easily follow.
voice your opinion now!
seo friendly url function parse search engine
Mind Tree Blog: Friendly URLs in PHP why do you care?
by Chris Cornutt June 26, 2008 @ 10:26:59
This new post from the Mind Tree blog (at hurricanesoftware.com) asks the question "why do you care about friendly URLs in PHP applications?"
Nice URLs, readable URLs, search-engine-friendly URLs. Different names same deal. [...] Turns out this isn't all that hard with PHP - in fact it can turn into something that's very useful from more than just a readability viewpoint.
He shows how to use mod_rewrite and an .htaccess file to automatically grab the request and map it to the right place. Then, the PHP script looks at the incoming data and pushes the correct page back out to the browser. He's also included some modifications to the original idea that allow for numeric grouping and named groups for rewriting content.
voice your opinion now!
friendly url modrewrite htaccess group named numeric
Rob Allen's Blog: Zend Framework URLs without mod_rewrite
by Chris Cornutt June 04, 2008 @ 12:50:16
Rob Allen has posted a new entry on getting a Zend Framework application to run correctly even though mod_rewrite (or ISAPI_Rewrite) isn't up and running.
Some of our Zend Framework applications have to run on IIS without ISAPI_Rewrite installed. In these cases we need urls of the form http://www.example.com/index.php?module=mod&controller=con&action=act. I couldn't get this to work out of the box with Zend Framework 1.5, so wrote my own router called App_Controller_Router_Route_RequestVars.
Most of the post is the code for the router (ready for you to cut and paste) but he's also included a usage example of it so you can easily update your bootstrap file to use it.
voice your opinion now!
zendframework url moderewrite isapirewrite router custom
Padraic Brady's Blog: Zend Framework App Tutorial - Part 9 Zend_Vew and Displaying Blog Entries
by Chris Cornutt May 27, 2008 @ 07:05:22
Padraic Brady has posted part seven of his series on building a blogging application with the Zend Framework as a base. This time he's working on the output of the entries - using Zend_View to standardize the look and feel.
In previous parts we've been using View Helpers without even noticing it. Zend_Form doesn't generate forms by itself, rather it delegates most of the HTML generation to a set of View Helpers like Zend_View_Helper_Form. The problem with such output, is that View Helpers can only generate XHTML 1.0 Strict output if we actually inform them of the standard to use. [...] What we should do, is make the Doctype of our View more dynamic. This is achievable by using the Doctype View Helper.
Padraic talks about the different parts of the View layer in the framework (helpers, partials, placeholders) that were mentioned in previous parts. He shows how to change up his current setup to work with the Doctype View Helper to change the view and make it UTF-8 compliant.
He shows the changes to the bootstrap file, how he's grabbing the entries from the database and how he pushes that out to the view to be displayed. He also creates a custom view helper to create the entry URLs for each of the posts (Wordpress users out there, these are the stubs).
voice your opinion now!
zendview zendframework helper placeholder custom entry url doctype
PHPWACT.org: Handling UTF-8 with PHP
by Chris Cornutt January 24, 2008 @ 07:51:00
Ed Finkler has pointed out a handy resource for those trying to cope with using the UTF-8 support included in several of PHP's functions - this page on the Web Application Component Toolkit wiki.
This page is intended as a reference for functionality PHP provides which can either help with handling UTF-8 or should be regarded as a risk when used in conjunction with UTF-8 encoded strings. Further information can be found on the Internationalization (I18N) and Character Sets / Character Encoding Issues pages.
It talks about the "dangerous" functionality PHP has (issues that the language has in current functions) when using things like the PCRE extension, the string extension, the array methods, handling variables, the XML extensions (DOM and SAX), image manipulation, and URL parsing functionality.
voice your opinion now!
utf8 dangerous functionality pcre xml string array image url
Brian Moon's Blog: ForceType for nice URLs with PHP
by Chris Cornutt October 04, 2007 @ 09:37:00
On his blog today, Brian Moon talks about setting up ForceType directives in Apache, specifically how to make "friendly URLs" without having to use mod_rewrite (which might not be installed on your server).
This has been covered before, but I was just setting up a new force type on our servers and thought I would mention it for the fun of it. You see lots of stuff about using mod_rewrite to make friendly URLs or SEO friendly URLs. But, if you are using PHP (and I guess other Apache modules) you can do it without mod_rewrite.
There's three steps to the process - adding the directive to your Apache config, making the script able to handle the request, avoiding duplication of content and returning a 404 error when there's no matching data.
voice your opinion now!
forcetype url modrewrite duplicate content forcetype url modrewrite duplicate content
|
Community Events
Don't see your event here? Let us know!
|