Interspire Product Knowledge Base

Would you like to...

Print this page Print this page

Email this page Email this page

Post a comment Post a comment

Subscribe me

Add to favorites Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Export to PDF

User Opinions (25 votes)

76% thumbs up 24% thumbs down

How would you rate this answer?



Thank you for rating this answer.

How do I change the names of the various folders in the URL such as articles, news, search etc?

This applies to ArticleLive NX 1.6 and above


The default folders used in the URL in Interspire Website Publisher are along the lines of:


www.mysite.com/articles
www.mysite.com/news
www.mysite.com/search
etc.

In Interspire Website Publisher versions NX.1.6 and upward you can now change the default URL's.

Simply open up /includes/language/common_language.ini in a text editor such as MS Notepad. You will see lines like:

urlArticles = "articles"
urlNews = "news"
urlSearch = "search"


Simple change the values (on the right) to another word.
Note: You can only use English characters, other non-English characters will be URL encoded and turned into things such as %23%24%25.

Example:

urlArticles = "artigos"
urlNews = "noticia"
urlSearch = "busca"


There are different sections in the language file if you change any under this heading: "; main urls", then you will also need to edit the .htaccess file.

Open up the .htaccess file, which is located in the base Interspire Website Publisher directory in the same place as files like index.php, init.php, articles.php etc.

This file controls the SEF (Search Engine Friendly) urls and redirects them to the appropriate PHP files. These are called Rewrite Rules.

There are 3 main "groups" of rules, used depending on what your server configuration is. 

So you will find 2 variations:

RewriteCond %{REQUEST_URI} !articles\.php
RewriteRule ^articles(.*)$ articles.php?$1 [L]


and

RewriteCond %{REQUEST_URI} articles.*
RewriteRule ^articles(.*)$ articles.php?$1 [T=application/x-httpd-php,L]


We need to change the first occurrence of "articles" in the first one, and the first 2 in the second one. However, not the last as that is just the name of the file.

So we will change to:

RewriteCond %{REQUEST_URI} !artigos\.php
RewriteRule ^artigos(.*)$ articles.php?$1 [L]


and

RewriteCond %{REQUEST_URI} artigos.*
RewriteRule ^
artigos(.*)$ articles.php?$1 [T=application/x-httpd-php,L]

Just do that for each URL you wish to change. If you get stuck at all with this guide, just send in a support ticket from your client area.

Related Articles

No related articles were found.

Attachments

No attachments were found.

Powered by Interspire Knowledge Manager - World's #1 Best Selling FAQ and Knowledge Base Software