Re: rewrite rule

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The HTML look perfectly alright. If I change the URL to IP also it works good. something like, I can access server.com/products ip/products, both show up correctly.

You can check my site at http://cdachyd.in, as well the same with its Ip http://196.12.45.103

When you access with cdachyd.in, all links of the pages point to cdachyd.in
When you access with 196.12.45.103, the site home page opens open but if you observe the links, allover the page, like  esecurity etc they point to cdachyd.in/xxx

If I change my rewrite rule to

    RewriteRule ^/(.*) http://localhost:8080/VirtualHostBase/http/196.12.45.103:80/Site/VirtualHostRoot/$1 [P,L]

then all links with 196.12.45.103 and cdachyd.in point to Ip based links only.

any help is appreciated.

thanks
indraveni


On Wed, Jan 18, 2012 at 5:38 PM, Eric Covener <covener@xxxxxxxxx> wrote:
> IF I access server.com -> all links in my site are with server.com/products,
> server.com/services etc
>
> But I access with 192.168.52.58 -> site opens up well , but the links of the
> pages are server.com/products, server.com/services
>
> How can I resolve this ? I mean my site should be linked to its internal
> pages with which ever domain name I am accessing the site.

What does the HTML look like?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux