473,382 Members | 1,717 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

301 redirect like .htaccess

Hi everyone,

I'm trying to look for an asp equivilent of .htaccess that is used on apache
servers but for use with asp.

I am doing a website and moving lots of files into a single directory to
make it easier to maintain, however, I don't want to loose the search engine
indexing that is already in place.
What I would like to have is a db/.htacces-like files, that when a page
doesn't exist the server redirect.

I have found several options however, there seem to be pros and cons with
all of them so I am not sure what is the usual process for achieving what I
am trying to achieve. I don't have direct access to IIS.

1) Custom error 404 to catch all 'non existant' pages, run through db and d0
a 302 redirect (but this wouldn't index on search engines??)
2) Custom error 404 to catch all 'non existant' pages, run through db and d0
a 301 redirect (but would this not index the 404 as the new page)
3) JS redirect (yuck, wouldn't reindex on search engines and doesn't cover
non JS peps)
4) Meta refresh (I have read search engines ignore these)
5)Creating copies of current path files, insert a 301 code manually into
each, and redirect to the relevent page (cumbersome to maintain)
6)Create a single 'generic' file, renamed as per current paths, but have a
DB back end to do the 301 redirect after it's checked the DB (again
cumbersome to maintain, but it would work if I can put asp code before the
301)
7) Something I haven't considered - What could this be? - Something
generically doable in IIS (referencing a file) that I can send to the
hosting company perhaps?

Could you guys give me an insight to solutions tried and tested in ASP,
things which I haven't considered, bad and good practices. It may be a very
useful resource to others who are perhaps having similar problems finding a
solution as myself. What is considered the 'best practice', and be solution
considering the setup I have? Also, do 301 redirects reindex search engines
with the new _target_ path?

TIA
Stu

--

Jul 24 '06 #1
0 2075

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: | last post by:
This is an apache question (little off-topic) I have this .htaccess in web root -------------- ErrorDocument 404 /error404handler.php -------------- BUT I take in Mozilla this when I call a...
2
by: Sean Pinto | last post by:
My hosting company has an automatic redirect page called /missing/missing.php and I want to log all of the page not founds that result in a redirection to missing.php. I can't seem to find out how...
7
by: Tim Evans | last post by:
I'm using a meta-refresh construct to redirect a URL: <meta http-equiv="REFRESH" content="0;url=http://path/to/new/url"> I would like to be able to make this open in a new window, rather than...
3
by: Vardan Kushnir | last post by:
Please forgive me if my English is poor. Also please tell me if this is wrong place to ask this question and tell me better place. When searching web for information Re: .htaccess and...
5
by: deko | last post by:
I'm trying to redirect requests for /index.php to /mydirectory/index.php If I use an index file in / with only this line: <?php header("Location:http://www.mysite.com/mydirectory/"); ?> that...
2
by: =?ISO-8859-1?Q?Fran=E7ois_de_Dardel?= | last post by:
I am not sure if this is the proper forum, but I always found very helpful information here and I would like to have the advice of experts. Just before new year (end Dec 2006), my internet...
8
by: howa | last post by:
a page currently in HTTPS, I force the client to redirect to another page using HTTP under the same domain (e.g. abc.com), i.e. header("Location: http://www.abc.com/index.php"); IE...
2
by: RuthC | last post by:
Hi. I am using .htaccess to redirect in my website Now I want to redirect a url, which Contain '-' to another url. ex: RewriteRule ^book-and-magazine-discount/ query.php?q=$1.
2
by: RuthC | last post by:
Hi, In my website there is a facility for user to create there own pages we are maintaing this url as www.mywebsite.com/mypage/user created page name ex : www.mywebsite.com/mypage/ruth user...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.