ispCP - Board - Support
[SOLVED] .htaccess support? (Very simple question). - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: [SOLVED] .htaccess support? (Very simple question). (/thread-5181.html)



[SOLVED] .htaccess support? (Very simple question). - Neal - 12-17-2008 05:34 PM

1.Is there any way to defaultly forward a certain page to another?

Example:

http://domain.org/File --> http://domain.org/file.html ?

I have a .htaccess in my /root/ folder.

In the file, it has:

RedirectMatch "^/Gerontology/?$" "./Gerontology.html"

But not working..?

2.I have this problem.

http://domain.org/file works, but not http://www.domain.org/file

Any way to make it work for the www too? The www makes it not work (for that specific file).

Thanks.

Neal.


RE: .htaccess support? (Very simple question). - BeNe - 12-17-2008 05:56 PM

Quote:But not working..?
Anything in the Logs ?
Quote:http://domain.org/file works, but not http://www.domain.org/file
DNS right configured ?

Greez BeNe


RE: .htaccess support? (Very simple question). - Neal - 12-17-2008 06:01 PM

(12-17-2008 05:34 PM)Neal Wrote:  RedirectMatch "^/Gerontology/?$" "./Gerontology.html"

But not working..?

Anything in the logs?

-->

[Tue Dec 16 23:23:34 2008] [error] [client 74.6.22.126] File does not exist: /var/www/virtual/nealirc.org/htdocs/Gerontology

BeNe Wrote:DNS right configured ?
Oh, how do I do that?

Thanks.

Neal.


RE: .htaccess support? (Very simple question). - Neal - 12-19-2008 02:44 AM

Sorry wrong error.

My file manager was down all yesterday so I couldn't post it.

It's:

cannot redirect '/Gerontology' to './Gerontology.html'; target is not a valid absoluteURI or abs_path

(From the error logs.)

What I have in .htaccess under /root/ is:

RedirectMatch "^/Gerontology/?$" "./Gerontology.html"
And if I instead, use:

RedirectMatch ^Gerontology/?$ Gerontology.html

Rather than getting a 500, I get a 403. It forwarded to /Gerontology/ but not Gerontology.html (it at least added a /).
Hey nevermind to all my questions I figured it out. Going to rename this topic solved if possible.