Solved

HtAcess Mod update

Posted on 2006-06-26
3
208 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

617 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