![]() |
![]() |
Real Estate Information |
|
![]() |
![]() |
Get PHP pages indexed in the Search enginesMichael Medeiros A simple method to convert files from Php to Html Extensions, on an Apache Server Most will agree Php has become the common language for creating dynamic Websites. Although the language is simple and efficient, developers are finding trouble getting traffic to their Php site. It is believed by many educated Search Engine Optimization Specialists that spiders do not read beyond the, “.php,” on a URL. Therefore, dynamic pages that pass a variable will be overlooked. For example, on a PHP directory, variables may be passed to a file as, “index.phpcategory=x”. In this instance, the category specified as “x” will not be read or indexed by Search Engines. Spiders will open the parent page index.php. This is supported by the belief that nothing is read beyond the “”, thus making all category links, “index.php”. While many dynamic Websites still receive modest traffic, it may be in a developers’ best interest to allow some, or all, dynamic pages to be seen as well. Having two pages indexed may not double a sites’ traffic, but it will ensure a noticeable increase. Developers’ can easily overcome this problem, if their Site resides on an Apache Server. This simple fix will satisfy the problem for a simple script, as in the example above, where one or more Php files are passed variables to perform different functions. Bare in mind, if a Php file only performs one task, this is not required. Files that perform a task without the “variable=x” being required will be indexed. Therefore, it would be useless to transform them to a Static URL HTML File. Identify the Php File Needing to be changed to an Html First, identify the desired file, or files, that require the change, along with the variables that generate a common page. Generally, this may be, “index.php”. To help readers follow along, I am going to utilize the above Directory example. On our Directory program, we have a main page, “index.php,” which always displays links to Subdirectories. The subdirectories are opened by passing a variable to the index file. For example, a subcategory called, “Arts and Crafts,” is displayed with, “index.phpcategory=1”. Additional subcategories are displayed with an identical syntax, but the end variable changes. Because of this, we need to modify the way our server opens the index.php file, when a variable is attached. Next, we need to place a simple .htaccess file in the directory where, “index.php,” is located on the server. The .htaccess file is a simple text file that we name .htaccess. Vdeck users may need to create a file named something.txt, and then rename the file to .htaccess, from the admin panel. Now we need to specify some variables to the server. For this example, I am going to change the, “category=x,” variable to, “directory-x.html”. This step will eliminate our problem of having the subcategories noticed by Search Engine Spiders. To start our server variables, we need to create a rewrite engine in the .htaccess file. Simply put our first line will read, “RewriteEngine On”. This tells the server we are changing the way certain files are to be handled. No we need to specify our Rewrite rule. On the next line, “RewriteRule ^directory-[0-9]*.* index.phpcategory=$1 [L,NC],”. This is delegating, “requests to this directory, where the file is named, “directory-,” followed by a range of 0 to 9, followed by anything * = Wildcard and, “dot,” anything * = Wildcard, we are going to display, “index.php,” file with the variable attached. We can create another rewrite rule on another line of our .htaccess file. However, a meticulous developer likes to test things out before making changes to the actual Php file, or progressing ahead of oneself. We can test our, “RewriteRule,” by opening another browser window and entering, “directory-1.htm or directory-1.html,” into the address bar. We should see the same page displayed as, “index.phpcategory=1,” is called. Finally, we want the Search Engine spiders to be able to see our shinning new readable URL that can be indexed. Rather than scurrying around to every search engine and submitting the URL, we are going to open up our Php file for editing. Before this is done, make a copy of each script that is going to be modified. Save the copy to the hard drive in a memorable location. Then identify the different areas of the program that create the links being changed. We don’t want to change things on the back-end, just the front-end. The Php file will still be getting the information as, “index.phpcategory=x,” from the .htaccess file. We want to change the display part that users to the site see. This is where links are dynamically created on the Php Script. We need to replace, “index.phpcategory=,” to read, “directory-,” where, “index.phpcategory=X,” is found and follow behind the variable x with, “.html”. Once the area to be modified is found, check the modification following your changes. If you make a mistake on a script and get ahead of yourself, it may be difficult to fix the problem. To see this exact modification in action, visit http://links.mjmls.com/index.html. Follow any of the category links on the page. Then change, “directory-,” to, “index.phpcat=,” and drop the html extension.
| ![]() | ![]() | ![]() | RELATED ARTICLES Are You Profiting From O.P.P. Are you profiting from O.P.P. If not, why not 10 Ways to Market Your Web Site and Have it Market You Once your web site is done, it does you little good to have it sitting static on the net waiting for those visitor “clicks.” High numbers of visits to your site from potential customers or clients rarely happen by accident. They are a result of a well designed internet marketing plan. The Benefits of Buying and Selling Locally Shop at a flea market in Oaxaca, Mexico. Trade with a vendor in London, England. Or sport your wares to collectors in Geneva, Switzerland. You can virtually do just that when you shop or sell goods at an online auction site. You know those global auction Web sites, the ones that allow you to bid on thousands of items against millions of other competitors. Sure, they allow you to expand your world and uncover cool knickknacks from around the world. But these very same sites also open the door to you getting ripped off by someone four thousand miles away. More than 8 billion dollars were spent on auction sites in the last three months of last year, but how many dollars were lost along the way Is it time to stop filling your Landlord’s Wallet Is it time to stop filling your Landlord’s Wallet Four Tips For Getting More Mileage From Your Articles It has become common knowledge that the smartest and most effective free method of advertising your business and services is to write and submit articles to the over 400,000 e-zines currently on the net.There are even several e-books written on the topic, including mine, that will help you take advantage of this effective technique.What do you do next after youve invested the hours necessary to research, write, proofread, edit and submit your article to thousands of e-zine publishers Top 7 Reasons Why FSBOs Fail To Sell Their Home On Their Own! In the United States, less than 10% of all For Sale by Owners FSBOs, are successful in selling their home by themselves. That*s because most people just give up because they don*t realize from the beginning the difficulty and complexity of the job ahead. But that*s not the only reason. Here are the seven most common mistakes FSBOs make when selling their home. Naples and Southwest Florida Real Estate Is Hot! There has never been a better time to Invest in Naples and Southwest Florida Real Estate! Getting Referrals Referrals Negotiating the Real Estate Contract Negotiation is the process of communication back and forth in order to reach a joint agreement. There is no "one size fits all" strategy of negotiating a real estate contract. Many of our clients have been very experienced negotiators, and we have learned a great deal from them, as well as from books on the subject. We would like to share some of our thoughts on negotiating with you: Is Your Business Safe Well, is it! Do you back up your files on a regular basis Do you have a back up plan in place What’s important to your business and what isn’t What happens if you get hurt, who will run your business Do you have customers come to your business What ifthey get hurt, are you covered What about all the equipment you have, is it covered Virtual Assistance; A Money Saving Opportunity For Employers. What is a Virtual Assistant A Virtual Assistant is a highly skilled, independent entrepreneur who provides business services in a remote or virtual environment. Some have used terms like telecommuter or working from home. The Metaphors of the Net Four metaphors come to mind when we consider the Internet "philosophically":A Genetic BlueprintA Chaotic LibraryA Collective Nervous SystemAn Unknown Continent Terra Internetica Understanding Bridging Finance Bridging finance, also referred to as "bridge loans" and "bridging loans", have nothing at all to do with re-constructing the London Bridge. Bridging finance is typically a short-term loan that a business uses to supply cash for a real estate transaction until permanent financing can be arranged. The word "bridge" conveys the fact that the loan is designed to get you over a temporary obstacle. A typical use for a bridge loan is to cover situations such as when a company needs to close on a new office building before having sold their old one. They would use the proceeds of the bridge loan to continue making payments on the old building until it is sold. How To Jump Start ANY Business Typically it is said that when you open up a new venture, it takes fro 2 to 5 years of steady growth before you can call it a success.All things considered, this is true and because it is true, it is all the more important to do everything correctly, right from the start!So here are 7 guidelines on engagement for every business entrepreneur. Publicizing Your Company Got a huge need for publicity and a tiny publicity budget You don’t need to have a Madison Avenue-sized advertising budget to make your name known. Scaling Down almost Painlessly Moving to a smaller house or apartment in a retirement community almost always involves a certain degree of trauma, both for the elder whos moving and for family members. However, by planning ahead you can reduce the discomfort involved and turn what might well become a nightmare into a pleasant event. Is Day Trading Right For You Do you have the tolerance for the risk involved with day trading Day trading is not a get rich quick business. It is not technically even investing. This competitive game of day trading is speculation at its core and the odds are against you in favor of failure. But for those who crave this type of environment it can be a very exciting and profitable venture. A study in 1999 found that 70% of day traders lost money and of those that made money the profits were made from just one trade. Mortgage Consumer Bill of Rights This bill of rights was laid out by Franklin Raines, president of Fannie Mae on January 15, 2000. The Mortgage Consumer Bill of Rights is a pledge fof $2 trillion over 10 years to help consumers gain access to home ownership.It also includes an “Open Book” approach to underwriting where customers can see all of the factors that go into evaluating their creditworthiness and the process of applying for a home loan. The Power Of Viral Marketing You certainly know by now that the term "viral marketing" is not just another dot-com cliché. Quite the contrary, it describes the incredible, unmatched power of the Web to promote your business by marrying email to the traditional concept of "word-of-mouth." Real Estate Professionals Need You to Write for Them! Ask yourself these questions:Are you an experienced writerDo you want to stay at home to writeDo you want to work for yourselfDo you learn new things quicklyAre you interested in a broad number of subjectsDo you feel like you’re being pigeonholed with your current writing and you want to branch outDo you have a flair for marketing ![]() |
home | site map |
© 2005 |