Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): Prowler, jcokos
Member Message

suthra
Joined: Mar 25, 2004
# Posts: 37

View the profile for suthra Send suthra a private message

Posted: 2006-Apr-03 09:37
Edit Message Delete Message Reply to this message

Hi Guyz, iam trying to 301 redirect:

mydomain.com/m/1 to mydomain.com/m/1.html

The number is dynamic, like
mydomain.com/m/2 to mydomain.com/m/2.html
mydomain.com/m/3 to mydomain.com/m/3.html

How do i do it through .htaccess so that the urls automaticall redirects

Pls help

Thanks a lot

Sarathy.s



dudibob
Joined: Oct 13, 2005
# Posts: 1473

View the profile for dudibob Send dudibob a private message

Posted: 2006-Apr-03 10:20
Edit Message Delete Message Reply to this message

I don't think you can create what your after in the .htaccess

I think you will have to manually create a redirect from the old page to the new one.

I don't know the coding for .htaccess, sorry sad



suthra
Joined: Mar 25, 2004
# Posts: 37

View the profile for suthra Send suthra a private message

Posted: 2006-Apr-03 10:40
Edit Message Delete Message Reply to this message

Hi dudibob, I think its possible to do it through .htaccess.

A 301 redirect from
mydomain.com/m/<idnumber>/ to mydomain.com/m/<idnumber.html> is possible, I too dont know to code smile

Hope someone will help, as this is really urgent, since we sent newsletters using the old urls and now i did a change to the url structure smile



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1835

View the profile for Prowler Send Prowler a private message

Posted: 2006-Apr-03 13:34
Edit Message Delete Message Reply to this message

Put up a .htaccess file like the one below in the directory m:


Code: [copy]







You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions