Rewrite and redirect rules using codebehind, DOT NET Programming

Assignment Help:

VB.net Rewrite and Redirect Rules using CodeBehind

Project Description:

Need VB.net programmer to make some (hopefully) minor code edits to resolve some site issues. I will provide the CodeBehind (.aspx.vb) files and the Main.master.vb file. All edits have to be made in these files. IIS rewrites and Server level are unfortunately not an option.

This can be a trial and error process to see if the changes work with the CMS and server. I am code-savvy but need expert guidance for these customizations.

About The Site and Server Environment

IIS 7.5 on Windows Server 2008 R2

Custom CMS using VB.net, MasterPages, CodeBehind

Current Issues

1. Whenever a user visits a non-existent page ending in .aspx, they are masked-redirected to the default page, which is the site home page. All other missing pages/ non-existent return the correct 404 page. I need the missing .aspx pages to return a 404 error.

The way the redirect code is set up is this:

If ThePage Is Nothing Then

ThePage = FindDefault

End If

The major issue is that when this code is replaced, the home page root (https://www.mysite.com/) returns a 404 error because it falls under the "If ThePage Is Nothing Then" statement. I need an exception for the home page so it does not give a 404 error. Expectantly this can be resolved with a few lines of code. :)

2. Force lowercase urls site wide and on all sub-directories EXCEPT for admin folder.

This can be done in IIS but it breaks some functionality in the/admin /directory. I need an exception for the /admin/ directory.

3. Rewrite underscores to dashes in all urls and redirect old urls to new ones

Existing site CMS inserts underscores in URLs. I require these rewritten to dashes and all URLs using the underscores to be 301 redirected to the new links.

Exclude /admin/ directory

Example:

https://www.mysite.com/sample_link.aspx rewritten to https://www.mysite.com/sample-link.aspx but if someone visits the old link (sample1_link.aspx), they are 301 redirected to the updated one (sample2-link.aspx)

An IIS rewrite rule MIGHT work for this. Must be done from IIS Manager.

4. I require to drop the .aspx from all URLs and force a trailing slash on the newly rewritten URLs. All old links should redirected by 301 redirect to new links.

Skills required:

.NET, ASP, Visual Basic, IIS, Windows Server


Related Discussions:- Rewrite and redirect rules using codebehind

What are major difference between classic ado and ado.net, What are major d...

What are major difference between classic ADO and ADO.NET? Following are some major differences among both In ADO we have recordset and in ADO.NET we have dataset. In rec

Is it good to distribute implementation to remoting client?, It's never tol...

It's never told  to distribute complete implementation at client, due to following shown  reasons:- 1) Anyone can use ILDASM and decrypt your logic. 2) It is a bad architectu

What do you mean by data encapsulation, What do you mean by data encapsulat...

What do you mean by data encapsulation? Data encapsulation is a method of binding data and code in single unit known as object and hiding all the implementation details of a cl

Xslt processor, What is XSLT? The XSLT is a rule based language used to...

What is XSLT? The XSLT is a rule based language used to transform XML documents into other file formats. The XSLT are nothing but generic transformation rules which can be appl

Aspect oriented programming, What is aspect oriented programming? The A...

What is aspect oriented programming? The Aspect-oriented software development is the latest technology for the separation of the concerns (SOC) in the software development. The

I want a panel for youtube views and facbook, I want a Panel for youtube vi...

I want a Panel for youtube views and facbook likes. I need a panel made that can increase facebook fanpage likes, and that will increase youtube video views. Youtube views an

Explain custom authentication, Custom authentication: If we don't need ...

Custom authentication: If we don't need ASP.NET to perform any authentication, we can set the authentication mode to none. The reason behind this decision could be: We don't

Different levels of iis isolation, What are the different levels Of IIS i...

What are the different levels Of IIS isolation?  The IIS consist of 3 level of isolation as shown below:- LOW (IIS process):- In this type of isolation the main IIS proc

Post cache substitution, What is Post Cache substitution? The Post cach...

What is Post Cache substitution? The Post cache substitution is used when we want to cache the complete page but also require some of the dynamic region inside that cached page

Develop a mlm business, Advertizing Project Description: I am prepari...

Advertizing Project Description: I am preparing a MLM business. I can need direct mailing and coupon books as a product in my website. Skills required are .NET, C# Program

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd