.htacess help (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


airattack111 -> .htacess help (11/30/2008 5:08:37)

Ok I've had this problem for a while, and I'm not very good at .htacess.

Right now I have 3 domain names that redirect to my forums, everything works fine.

On one of the domain name ( http://www.ltr450hq.com ) I want to change the directory of the forum.

Right now it's ( /invision/forums/index.php ... )

On ( http://www.kfx450hq.com ) and ( http://www.ds450hq.com ) the directory is ( /invision/index.php ... )

Now what you guys are probably saying is "easy as hell to do". But half of the problem is that websites and my own website linking to specific forum urls will come up to an empty page. So I need /invision/forums/ to redirect to /invision/ ...somehow.

Please help, and I appreciate it. Shorter URL's ftw.




caywind -> RE: .htacess help (8/9/2009 3:51:39)

You can have a webpage re-direct using code in the head portion of the page.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Your Page Title</title>
<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com">

<meta http-equiv="REFRESH" content="0;url=http://www.the-domain-you-want-to-redirect-to.com"> is the part that actually does the redirecting.

The number preceding the url (in this case zero) tells the browser the number of seconds to wait before redirecting to the new url.




treetopsranch -> RE: .htacess help (8/9/2009 16:31:46)

In addition to Caywind's meta method here is a good link that explains the htaccess method:

http://www.webweaver.nu/html-tips/web-redirection.shtml

Good on Apache servers not windows servers.




BobbyDouglas -> RE: .htacess help (8/26/2009 18:20:51)

quote:

Good on Apache servers not windows servers.

- It's not available by default, but it is something you can install for free: ISAPI_Rewrite

I've used this on many windows based websites, it's an amazing program... works flawlessly!

It has a really nice gui for finding errors in your rewrite rules too.




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625