/    Sign up×
Community /Pin to ProfileBookmark

redirecting

I have hosted my web site on xyz.com which displays advertisement. To get rid of these I have Kept my files in another server which doesnt have name server and doesn’t do web hosting. It is only providing me web space. i have used xyz.com for only name server’s use. Whenever a user hits my URL they are redirected from xyz.com to my file server.

Please check my site [url]http://www.roshankarki.com.np[/url] to see what i mean.

Now the thing I dont like is after the page gets redirected to my file server the addressbar displays the address of the file server(hachua.com/roxan/index.html but my site is roshankarki.com.np). Instead I want it to display roshankarki.com.np/index.html

I have heard that i can use .htaccess to get rid of these problem. But befor using It I want to know if there are any other alternatives. If there aren’t can anybody tell me the lines that i have to put in the .htaccess file.

to post a comment
HTML

0Be the first to comment 😎

×

Success!

Help @roxan spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...