Pure Software Knowledge Base Glossary    Contact Us
 
   
Browse by Category
Pure Software Knowledge Base > Lore > Features > "Search Engine Friendly" URLs

"Search Engine Friendly" URLs

Lore fully supports what are known as "Search Engine Friendly" URLs starting from version 1.0.5. These refer to web addresses that appear to be static pages and not dynamically generated through scripts. Search engines tend to index static pages better, and many use the URL itself to match keywords in search queries.

Example of a standard Lore URL:
http://www.example.com/lore/article.php?id=001

Example of a "search engine friendly" URL:
http://www.example.com/lore/idx/0/001/article/Search_Engine_Friendly_URLs.html

The latter may be longer, but contains keywords that can be easily indexed by search engines, and appears more standardized.

To enable "search engine friendly" URLs in Lore, go to "Edit Settings" in the control panel and set the "search engine friendly" URL options as desired.

The look of the "search engine friendly" URLs in Lore can be fully customized by editing the following templates:

url_article_search_engine_friendly.tpl
url_category_search_engine_friendly.tpl

Both URL templates will start like this:

{$lore_system.base_dir}/idx/{$category_id|default:0}/{$article_id}/

This part must remain intact for the URL's to parse correctly. Everything after this point is actually ignored by Lore and can be set to anything you want to appear in the URL. By default, the URL's include the name of the article or category with a ".html" extension.


Notes:

You web server must be running Apache in order for this feature to work. You also must ensure that the ".htaccess" file contained in the root directory of Lore has been uploaded.




Keywords: search-engine-friendly urls

How helpful was this article to you?

Related Articles

Why does search not return any results?
The search function uses MySQL's full-text search feature. It is...

 
Why do I get "404 File Not Found" errors on every article and category?
If you are receiving "404 file not found" errors with search...

 

User Comments

No comments have been posted.


powered by Lore