WebmasterSite.net
PHP scripts to enable your creativity
Home
Web Scripts
WSN Links
WSN Gallery
WSN Knowledge Base
WSN Forum
WSN Classifieds
WSN Directory
WSN AdUnblocker
WSN FormEmail
WSN InstaChat
WSN Redirector
WSN Webcomic
WSN Guest
Reviews
WSN For WordPress
WSN For Web Designers
Webmaster Resource Links
Register
Log In
Username
Password
Login
Forgot your password?
WSN Support Forums
Paid Scripts Support
HTACCESS
HTACCESS
Details
Discussion
3
Print
Comments on HTACCESS
•
emmeten
Member
Usergroup:
Customer
Joined:
Nov 17, 2008
Total Topics:
14
Total Comments:
35
•
emmeten
#1 -
Quote
-
Permalink
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:
7868
•
Paul
#2 -
Quote
-
Permalink
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
#3 -
Quote
-
Permalink
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
Go ►
Download thread as
text
HTML
Go ►
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.
Comments on HTACCESS
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
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?
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
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.
Member
Usergroup: Customer
Joined: Nov 17, 2008
Total Topics: 14
Total Comments: 35
got it!
thanks Paul, I resolved with the RewriteRule
RewriteEngine On
RewriteRule ^olddir/(.*)$ http://sitename.com/newdir/$1 [R=301,L]