Solved

Masking URL in address bar for redirected page

Posted on 2008-06-23
7
1,306 Views
Last Modified: 2013-11-30
I have a domain where my main account is hosted  (astsolutions.co.za)

In this domain is a folder zimbabwe which supportzimbabwe.com points to.

If you goto supportzimbabwe.com it changes to astsolutions.co.za/zimbabwe which is where the site is, but I would like to keep that piece astsolutions.co.za/zimbabwe to read supportzimbabwe.com so it looks like a site on its own.

Many thanks
0
Comment
Question by:jinxster
7 Comments
 
LVL 7

Expert Comment

by:Chandan_Gowda
ID: 21844215
0
 

Author Comment

by:jinxster
ID: 21844286
Thank you for your trouble Chandan.

That question is more about developing a web browser control that displays another address in the URL bar.

The suggestion of a frame is a good one. I will try that and let you know.

Many thanks
0
 
LVL 16

Accepted Solution

by:
CWS (haripriya) earned 125 total points
ID: 21844462
You can create a CNAME record in your DNS settings of the domain supportzimbabwe.com so that it points to the other website folder. This way the address bar shows only the website supportzimbabwe.com.
0
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 
LVL 4

Assisted Solution

by:snrudda
snrudda earned 125 total points
ID: 21855461
If yo3 need to have supportzimbabwe.com in the browser address bar while display content of astsolutions.co.za/zimbabwe then frame should be the solution. But note hat address won't change as use: A4CA; any link on the page and, if the link have target attribute set you'll get new browser window with right path in its address bar.

You may also do some trick like put PHP script on your supportzimbabwe.com server, set it up as 404 error page for the supportzimbabwe.com site. The script should simple check the $_SERVER["REQUEST_URI"] variable and download appropriate page from interested URI from within astsolutions.co.za server, and output (after maybe a decent modification) to the client. Tricky way and I'd better not to use it but this will do the trick very good. Beware of DOS attacks!
0
 

Author Comment

by:jinxster
ID: 21883158
Hi,

Thank you cyberwebservice and snrudda.

The frame idea kind of works as long as I pay for hosting account. My plan here was to not pay for the hosting account. The loss of the links are also not so nice, but I can live with that. (Bookmarking reasons)

So at this time I wont use frames thought it is a solution to this type of problem.

The CNAME also needs a hosted site and cannot be a parked domain (unless I am doing something wrong - possibly)

I did make progress on modding the .htaccess file. However I didnt succeed.

Attached my .htaccess file as it is now.

I don't know .htaccess error paths well enough so I dont know what to read into the situation that it does nothing.

I have also tried using the HTTP_REFERER variable, but no changes occured.

If anyone has any light on my htaccess configuration it would be appreciated. Do you think I should close this question and start a new one?

Thank you
# -FrontPage-
#Allow from all
#Allow from all
#Allow from all
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
</Limit>
<Limit PUT DELETE>
</Limit>
php_flag register_globals off
AuthName astsolutions.co.za
AuthUserFile /usr/www/users/astsol/_vti_pvt/service.pwd
AuthGroupFile /usr/www/users/astsol/_vti_pvt/service.grp
Redirect permanent /public_html http://www.astsolutions.co.za/AST/
 
RewriteCond %{HTTP_HOST} astsolutions.co.za
RewriteCond %{REQUEST_URI} !^/AST
RewriteRule ^(.*)$ AST/$1 [L]
 
RewriteCond %{HTTP_HOST} supportzimbabwe.com
RewriteCond %{REQUEST_URI} !^zimbabwe
RewriteRule ^(.*)$ zimbabe/$1 [L]

Open in new window

0
 

Author Closing Comment

by:jinxster
ID: 31471340
Many solutions to this problem. Both are correct though I wont use either. I will try an .htaccess mod rewrite.
0
 
LVL 16

Expert Comment

by:CWS (haripriya)
ID: 21883298
Thanks and Good luck :)
0

Featured Post

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

820 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