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

We need in asp.net mvc site, We need in ASP.NET Mvc site I have project ...

We need in ASP.NET Mvc site I have project should be done with MVC.NET technology. In general- I have by now the site Layout (Html-js-css) I need- a) Simple CMS allo

I am seeking to get a logo design for a business, I am seeking to get a log...

I am seeking to get a logo design for a business. Skills required: .NET, HTML, Graphic Design, PHP, Website Design

Project management, What is project management? Applying the knowledge,...

What is project management? Applying the knowledge, skills, techniques, tools in project and deliver project deliverable is a short definition of the project management. It's b

What is an identifier, What is an identifier? Identifiers are northing ...

What is an identifier? Identifiers are northing but names given to various entities uniquely identified in a program. The name of identifiers must vary in spelling or casing. F

Write a program of console statements - c# program, Write a program of cons...

Write a program of console statements - C# Program I am unable to make out the use of console statements in C# language. Can anyone suggest me any example for this.

Read an array and perform sorting - c# program, Read an Array and perform S...

Read an Array and perform Sorting - C# program Can any one assist me in performing sorting of an array.

How do we provide parameters to the stored procedures?, The ADO.NET gives t...

The ADO.NET gives the SqlCommand object which gives the functionality of executing the stored procedures. CREATE PROCEDURE SelectByEmployee @FirstName nvarchar(200) AS Se

Looking for web designer, Looking for web designer Project Description: ...

Looking for web designer Project Description: I am seeking website designer with developing skills of Html, .Net and also supports in all browsers. Please ping your previous

Nested classes, What is nested Classes? You can access an array using t...

What is nested Classes? You can access an array using the INDEX value of that array, but how many times you know the real value of the index. The Hashtable provides a way of ac

A simple desktop software, Project Description: I am seeking software th...

Project Description: I am seeking software that can do the subsequent: 1. Check position for a URL in Google, Bing, Yahoo. 2. Check position for a Youtube video in Youtube

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