Solved

HtAcess Mod update

Posted on 2006-06-26
3
205 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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Employ management and Helpdesk software 4 42
PHPmailer and exchange online(Office365) 3 355
Ubuntu 14 with Apache 7 75
.htaccess rewrite url with querystring problem 13 94
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…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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