PDA

View Full Version : Redirect existing page to a catergory


colbyt
08-21-2006, 02:31 PM
I have tried to redirect an existing page mysite.com/hosting.html to a page like mysite.com/index.php?c=417 using the redirection function of cPanel.

It doesn't work. I have about 15 pages that I would prefer to redirect to individual categories.

I am testing with V2 but will buy V3 for the actual site.

Anyway to do this?

Colbyt

David
08-21-2006, 05:53 PM
When you say it doesn't work?
What are getting?

colbyt
08-21-2006, 07:27 PM
Content visible to registered users only.

Page not found. I tried it with both url rewrite on and off.

The server seems to be breaking the tag at the = sign and sticking the 417 way to the right.

Based on your response I will go try it again while I am waiting for a respone.

Colbyt

Boby
08-21-2006, 07:31 PM
Can you show us the code of your htaccess file that was generated by Cpanel?

colbyt
08-21-2006, 08:50 PM
Content visible to registered users only.

I have been busy since I last posted. It still doesn't work. This test install is in a directory of a site.

I examined the .hta file before and after adding the redirect. cPanel adds the redirect to the main site .hta file in this format:

Content visible to registered users only.

It did not work. I copied the same line to the .hta file in the PHPld directory. It still did not work. Maybe the syntax is wrong.

Which .hta file should it be written to?

TIA,

Colbyt

Boby
08-21-2006, 11:06 PM
The syntax is correct.

You have to make sure the folders match. Like in this case you need the folder "test".

colbyt
08-22-2006, 12:07 AM
Content visible to registered users only.

Phpld is installed in the folder test and works fine except for this.

Colbyt

Boby
08-22-2006, 12:18 AM
I have tested the code now and if everything is set up correctly it works perfect.

What if you try one of this in the main htaccess file (http://mydomain.net/.htaccess):
Content visible to registered users only.
Or maybe add this to the htaccess file of your phpLD directory (http://mydomain.net/test/.htaccess)
Content visible to registered users only.
Boby