My webpage is opening on many urls ex: http://www.cmpsol.net/acer-support.aspx and it is also opening on http://www.cmpsol.net/acer-support.aspx/hp/rss/dell-support.aspx and many you can after .aspx , it will open.
currently i have made a permanent redirect to main url. i want show it as error pages.

So how can i fix the issue?


Recommended Answers

All 3 Replies

If I understand you correctly, you wish that your users will always access your site through the root page?

In otherwords, if they have put a page further into your site into the browser URL you will direct back to the root page?

I would create a session variable on your root page probably with a value of True then on each of your other pages the first thing I would do is to check for the session variable and that the value is True if not, redirect to your root page.

Can you clarfy the process your are trying to implement?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.