YAFLogo

Edward Jeramy
6 years ago
I have setup the yet forum locally correctly.Its source code version.

UserPostedImage

I need to add a separate home page with different master page.So I created a new home page under YAF folder.

UserPostedImage

When I run the Home page it allways redirect to forum home page.Url i says Home.aspx.But it is in the forum page..
UserPostedImage

I need to redirect that to home page when we click on the home.aspx

Please help me
Sponsor

tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
That is caused by the URLRewriter. Open up the urlrewriter.config

and change line from....

<if url="^((?!\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js|install|error|auth\.aspx|default\.aspx|popup\.aspx|advanced\.aspx|digest\.aspx).)*$">

to

<if url="^((?!\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js|install|error|auth\.aspx|default\.aspx|popup\.aspx|advanced\.aspx|digest\.aspx|home\.aspx).)*$">
Edward Jeramy
6 years ago
Originally Posted by: tha_watcha 

That is caused by the URLRewriter. Open up the urlrewriter.config

and change line from....

<if url="^((?!\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js|install|error|auth\.aspx|default\.aspx|popup\.aspx|advanced\.aspx|digest\.aspx).)*$">

to

<if url="^((?!\.ashx|\.asmx|\.axd|\.gif|\.png|\.jpg|\.ico|\.pdf|\.css|\.js|install|error|auth\.aspx|default\.aspx|popup\.aspx|advanced\.aspx|digest\.aspx|home\.aspx).)*$">



thank you watcha.. If I create more pages then I have to mention those all in here?
tha_watcha
  • tha_watcha
  • 100% (Exalted)
  • YAF.NET Project Lead 🤴 YAF Version: 3.0.3
6 years ago
Yes if all the pages are within the forum application then you need to add them all.
YAF Logo Copyright © YetAnotherForum.NET & Ingo Herbote. All rights reserved
About Us

The YAF.NET is an open source .NET forum project. YAF.NET is supported by an team of international developers who are build community by building community software.

Powered by Resharper Donate with PayPal button