Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

HtAcess Mod update

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

NEW Veeam Backup for Microsoft Office 365 1.5

With Office 365, it’s your data and your responsibility to protect it. NEW Veeam Backup for Microsoft Office 365 eliminates the risk of losing access to your Office 365 data.

Question has a verified solution.

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

If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
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…
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month10 days, 5 hours left to enroll

926 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