1

Topic: changing URLs

I'm using search engines friendly URLs and have links that lool like:

http://www.sitename.com/news/index.html
http://www.sitename.com/search/index.html
http://www.sitename.com/rate/index.html

but my website is not in english and would like to change the words news, search and rate

What should I update besides .htaccess and header.tpl ?? (I already tried and it's not enough to update those 2 files, e.g. individual news pages were still with the word news in the URL and couldn't open them)

Last edited by vyh (2007-05-04 06:29:26)

2

Re: changing URLs

English is the most international and universal language. I'd leave technical names and pathes in the original. Don't you satisfied only with flexible language independent interface?

www.vldMagic.com - first choice customizations help desk
www.vldCrowd.com/radioact - my profile at vldCrowd

3

Re: changing URLs

I have my reasons to do it.

Anyone knows how to do it? Help would be appreciated.

4

Re: changing URLs

You need to be familiar with PHP and mod_rewrite. Otherwise you won't be able to do it.

Developer

5

Re: changing URLs

up for this post, how can we have more sexy friendly SE urls, instead of /news/read/1, having /news/read/my-new-title ?

6

Re: changing URLs

Alter the database to store search friendly URLs and edit php files to handle that change.

Developer

7

Re: changing URLs

I would have guessed a change in .htaccess

## news
RewriteRule ^news/?$ index.php?m=news&p=all [L]
RewriteRule ^news/([0-9]+)/?$ index.php?m=news&p=all&page=$1 [L]
RewriteRule ^news/read/([0-9]+)/?$ index.php?m=news&p=one&id=$1 [L]

where ?$ is vld_news.title rewritten (how?)...

Now may be the hack is more in lib.news.php but how to give to .htaccess a rewritten $fields[$i]['news_title']

and can't figure out why alter the database... ok i leave it for near future tongue