Solved

HtAcess Mod update

Posted on 2006-06-26
3
203 Views
Last Modified: 2010-03-04
Hi,

I do have a problem:

My has 2 language, - eng and portuguese

Now the URL are abc.com for english and abc.com/br for portuguese.

Now I do also have domain as abc.com.br

I do like to have a setting so if someone comes to abc.com.br he can view the content for abc.com/br. But the URL will be abc.com.br. No redirection or frame.

Can this is done via HtAccess or am asking too much.

Thanks,
Funtus.
0
Comment
Question by:funtus
3 Comments
 
LVL 2

Author Comment

by:funtus
ID: 16982721
After thinking more on the problem.. I think this can be done if the server could have a cpanel hosting by using addon domain. But it seems that the server I am using is having ensim so.. can it be done any Mod etc..
0
 
LVL 7

Accepted Solution

by:
CraigHarris earned 500 total points
ID: 16996221
Do you have access to httpd.conf? - either directly, or via Ensim?

An easy solution is to use mod_rewrite to "rewrite" the URL inside the server from abc.com.br to abc.com/br .... the user would never notice the difference, and all files could remain as-is on the server; you just need a couple of lines for the mod_rewrite configuration.

See: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html

You could use something like:

RewriteEngine On
RewriteCond %{HTTP_HOST}   !^abc\.com\.br [NC]
RewriteRule ^/(.*)         http://abc.com/br/$1 [L,R]
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now