Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

HtAcess Mod update

Posted on 2006-06-26
3
Medium Priority
?
209 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 2000 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

715 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