Webmastersite.net
Register Log In

HTACCESS

Comments on HTACCESS

emmeten
Member

Usergroup: Customer
Joined: Nov 17, 2008

Total Topics: 14
Total Comments: 35
emmeten
Posted Aug 01, 2009 - 2:39 AM:

Hi Paul,

I'm renaming some categories and I've added a redirect 301 to the htaccess but the url comes out not friendly

Here is what I'm doing

I have a category CARS at http://www.photographydirectory.org/photographers/cars/
I've renamed it CAR PHOTOGRAPHY and the new url is www.photographydirectory.or...ographers/car-photography/

Then I've added to the htaccess the following:
Redirect 301 /photographers/cars/ www.photographydirectory.or...ographers/car-photography/

It works but the url appear as
www.photographydirectory.or...atname=photographers/cars/

I need to remove the ?rewritten=1&action=displaycat&catname=photographers/cars/ from the url
How can I do?
Paul
developer

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

Total Topics: 61
Total Comments: 7867
Paul
Posted Aug 03, 2009 - 5:03 PM:

A 301 redirect means you want the destination in the URL instead of using real rewriting. You're choosing to do redirects instead of rewrites.
emmeten
Member

Usergroup: Customer
Joined: Nov 17, 2008

Total Topics: 14
Total Comments: 35
emmeten
Posted Aug 04, 2009 - 12:49 AM:

got it!

thanks Paul, I resolved with the RewriteRule

RewriteEngine On
RewriteRule ^olddir/(.*)$ http://sitename.com/newdir/$1 [R=301,L]
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.