Current time: 04-26-2024, 01:13 AM Hello There, Guest! (LoginRegister)


Post Reply 
[SOLVED] .htaccess support? (Very simple question).
Author Message
Neal Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #1
[SOLVED] .htaccess support? (Very simple question).
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.
(This post was last modified: 12-19-2008 03:21 AM by Neal.)
12-17-2008 05:34 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: .htaccess support? (Very simple question).
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
12-17-2008 05:56 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Neal Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #3
RE: .htaccess support? (Very simple question).
(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.
(This post was last modified: 12-17-2008 06:02 PM by Neal.)
12-17-2008 06:01 PM
Find all posts by this user Quote this message in a reply
Neal Offline
Junior Member
*

Posts: 10
Joined: Dec 2008
Reputation: 0
Post: #4
RE: .htaccess support? (Very simple question).
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.
(This post was last modified: 12-19-2008 03:09 AM by Neal.)
12-19-2008 02:44 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)