Webmastersite.net
Register Log In

Need Redirect from Deleted Category Page

Comments on Need Redirect from Deleted Category Page

jsfent
Member

Usergroup: Customer
Joined: Dec 01, 2007

Total Topics: 12
Total Comments: 24
jsfent
Posted Aug 28, 2008 - 9:31 PM:

I deleted an old category and now want to send the traffic to my forums page. How do I do this?

The old url is
www.elementlist.com/lnx/ind...action=displaycat&catid=29

The new url is
http://www.elementlist.com/forum/

I tried to set up something with the .htaccess rewriterule, but I don't seem to have the correct syntax or something.

Suggestions?

Thanks
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Aug 29, 2008 - 4:24 PM:

I don't know how to rewrite to a directory outside your rewritebase, but maybe
RewriteRule ^index.php?action=displaycat&catid=29$ http://www.elementlist.com/forum/[/code]

Edit: it's not preserving the backslashes so I can't even write it.
jsfent
Member

Usergroup: Customer
Joined: Dec 01, 2007

Total Topics: 12
Total Comments: 24
jsfent
Posted Aug 29, 2008 - 8:21 PM:

hmmm, would it be possible to make a static page for the deleted category page and include a redirect in the html file?

or is there something else i can create within WSN Links rather than doing a rewriterule?
webflair
Forum Regular

Usergroup: Customer
Joined: Nov 27, 2006

Total Topics: 187
Total Comments: 465
Posted Aug 29, 2008 - 10:09 PM:

Ad this to your .htaccess in your root directory.

Note: If you have a WSN install in your root directory, you will have to add it to additional >httaccess content in your control panel (Under SEO}

Redirect 301 /lnx/index.php?action=displaycat&catid=29 http://www.elementlist.com/forum/[/code]

Should be simple as that
This will work seamlessly for your users, and direct search engines in the most SEO friendly way.
It has to be the .htaccess in your root directory, it will not work properly anywhere else. If you don't have .htaccess in your root directory, just create a text file, save it as .htaccess and upload to your root directory.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



Sorry, you don't have permission to post posts. Log in, or register if you haven't yet.