Web Services
  Home arrow Web Services arrow Page 2 - Make Dynamic URLs Search Engine Friendly
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
WEB SERVICES

Make Dynamic URLs Search Engine Friendly
By: Peter Lavin
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 52
    2004-03-01

    Table of Contents:
  • Make Dynamic URLs Search Engine Friendly
  • Check Your Server
  • Create an .htaccess File
  • Upload .htaccess to Your Server
  • Test the Results
  • Modifying Your Code
  • Conclusion

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Make Dynamic URLs Search Engine Friendly - Check Your Server


    (Page 2 of 7 )

    In the introduction we referred to something called mod_rewrite. This is a module that is usually compiled into Apache web servers and is fairly complex to configure. But this is the concern of server administrators and need not worry us here. mod_rewrite makes use of a file called .htaccess to perform its rewrites and creating this file is all we will need to do. .htaccess tells the server how to convert between dynamic and static URLs. Writing this file usually requires some knowledge of regular expressions. Like many of us, you may wish that you had greater facility with regular expressions but have never quite gotten around to learning them properly. Well don’t worry - creating the .htaccess file will require absolutely no knowledge of regular expressions.

    To ensure that your web host supports mod_rewrite you could send an e-mail to tech support or find out for yourself by creating the following text file:

    <?php
     phpinfo();
    ?>

    Save it as info.php, upload it to your server and invoke it by typing 

    http://www.mysite/info.php

    into the address box of your browser.

    The function phpinfo is very useful for determining how your server is configured, for looking at environment variables, cookies and the like but right now we are only concerned with mod_rewrite. Look for the heading "Apache" and then "Loaded Modules". You should find mod_rewrite amongst the many modules listed there. If so you are all set to begin and if not, speak to your web host.

    More Web Services Articles
    More By Peter Lavin


       · i tried everything but i still couldnt get it.look my site is...
       · I have implemented the it as described above. However it is not displaying data...
       · I have implemented the it as described above. However it is not displaying data...
     

    WEB SERVICES ARTICLES

    - Safety, Idempotence, and the Resource-Orient...
    - The Resource-Oriented Architecture in Action
    - Features of the Resource-Oriented Architectu...
    - The Resource-Oriented Architecture
    - Getting Started with Flex
    - Automated Billing and Faxing for the Web
    - An Introduction to Web Services
    - The Foundations of Web Services: From Novice...
    - Web Services Reengineering: Finishing Touches
    - Fault Handling with Web Services
    - Flow and Web Services
    - Process Lifecycles and Web Services
    - Business Processes and Web Services
    - Orchestrating Web Services
    - Notifications and Resources in the WS-Resour...







    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek