http://Check-these.info/RedirectProblems.html


Redirect & mod_rewrite related Problems

Get tools !

To trouble shoot redirect problems, it's essential to have a good tool.

These tools help any problem that requires examination of HTTP headers:

Get Firefox and install LiveHTTPHeaders extension.
Then, click "Tool" menu and "Live HTTP Headers" to start it.

Access the URL you are having problem, and check the screen of LiveHTTPHeaders.
You are looking at HTTP request headers and response headers.

In case of trouble with "Redirect", "RedirectMatch" directive in .htaccess, you are looking for the response header with 301 or 302 code.

Then, a few lines bellow, check if correct URL is displayed in the "Location" line.
If not, your "Redirect" directive may have error(s).

DomainManager is a tool for setting up sub/pointed domains.
It comes with some diagnostic tool.
After installing, click "Manually enter URLs for checking", and enter the URL you are having problem.
By pushing the button, it will access the URL and disply the headers just like LiveHTTPHeaders and aslo the page data.

Links

See mod_rewrite.html, mod_rewrite-basic.html for more info.

Example: Generic .htaccess Method for sub/pointed domains


Questionable color of this page is dictated by blueberry cream cake, my favorite dessert.

This page is http://Check-these.info/RedirectProblems.html

My main site is hosted by PowWeb, one of the best low budget host !

12,000 MB + 10 Gigs/Day Transfer - $7.77/mo Web Hosting!
Last modified: 2005-08-06_08:41:41   Powered by Wikiciter CMS