Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 21st Apr 2015, 10:04 PM   #1
HyperActive Warrior
War Room Member
 
pressreleaseagency's Avatar
 
Join Date: 2011
Posts: 147
Thanks: 16
Thanked 24 Times in 22 Posts
Default
301 Redirect Question .htacess Rewrite Rule
Share on: 
fb share twitter share gplus share more share

Hi Everyone,
I have a problem with my site, and I need make 301 redirect to those URLs.
Could someone help me in teaching me how to add some rule to .htaccess?

A lot of thanks for you.


1, all urls like
http://www.examplesite.com/index.php?n=138
http://www.examplesite.com/index.php?n=239
http://www.examplesite.com/index.php?n=1001
......
http://www.examplesite.com/index.php?n=1012

rewrite to

http://www.examplesite.com/index/138
......
http://www.examplesite.com/index/1012

2, all urls like
http://www.examplesite.com/chat.php?...72969615&n=138
http://www.examplesite.com/chat.php?...9086560&n=1001
......
http://www.examplesite.com/chat.php?...3234760&n=1012

rewrite to

http://www.examplesite.com/chat/Jenna_Squirts/138
http://www.examplesite.com/chat/yoursweetfox/1001
......
http://www.examplesite.com/chat/Lara_Schmidt/1012

pressreleaseagency is offline  
Unread 22nd Apr 2015, 12:47 PM   #2
HyperActive Warrior
War Room Member
 
Join Date: 2003
Location: Portland, ME USA.
Posts: 105
Thanks: 8
Thanked 10 Times in 9 Posts
Default
Re: 301 Redirect Question .htacess Rewrite Rule
Share on: 
fb share twitter share gplus share more share

you might try the programming forum section here on WF for this one...

Run Your Own Direct Sales MLM Company ==> https://DirectSalesMLM.com
Jim Symonds is offline  
Unread 22nd Apr 2015, 01:01 PM   #3
HyperActive Warrior
 
cashinpro's Avatar
 
Join Date: 2012
Location: Usa
Posts: 137
Thanks: 50
Thanked 35 Times in 29 Posts
Default
Re: 301 Redirect Question .htacess Rewrite Rule
Share on: 
fb share twitter share gplus share more share

hi

You can find useful information related to your querry here: Setting up a permanent 301 redirect via .htaccess | InMotion Hosting

cashinpro is offline  
The Following User Says Thank You to cashinpro For This Useful Post:
Unread 22nd Apr 2015, 08:41 PM   #4
HyperActive Warrior
War Room Member
 
pressreleaseagency's Avatar
 
Join Date: 2011
Posts: 147
Thanks: 16
Thanked 24 Times in 22 Posts
Default
Re: 301 Redirect Question .htacess Rewrite Rule
Share on: 
fb share twitter share gplus share more share

HI thanks for your advice.

pressreleaseagency is offline  
Unread 22nd Apr 2015, 11:56 PM   #5
HyperActive Warrior
 
kushalshah's Avatar
 
Join Date: 2014
Location: Mumbai, India
Posts: 110
Thanks: 0
Thanked 14 Times in 12 Posts
Default
Re: 301 Redirect Question .htacess Rewrite Rule
Share on: 
fb share twitter share gplus share more share

You could find the tutorial using .htacess file here: https://my.justhost.com/cgi/help/htaccess

Hope it helps!

kushalshah is offline  
Unread 24th Apr 2015, 12:30 AM   #6
Warrior Member
 
Join Date: 2015
Posts: 7
Thanks: 0
Thanked 2 Times in 1 Post
Default
Re: 301 Redirect Question .htacess Rewrite Rule
Share on: 
fb share twitter share gplus share more share

We have a very useful article with examples about .htacess Rewrite Rules at .htaccess RewriteRule Examples | Knowledgebase - Brontobytes

European Web Hosting by Brontobytes
nimonogi is offline  
Closed Thread


Bookmarks

Tags
301, htacess, question, redirect, rewrite, rule


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 01:30 AM.