Results 1 to 10 of 11
-
14th Apr 2012, 01:21 PM #1OPMemberWebsite's:
eotips.comhtacces Help 302 redirect
hi,
i want to define rule in my htaccess file but i Don't know to
can u please tell thanx
i want to redirect all urls
like
http://mydomain.com/dynamicname-staticname.html
to
http://mydomain.com/dynamicname-staticname1.html
some thing like this structure as above
Thanx waiting for answers
RegardsDesi_Boy Reviewed by Desi_Boy on . htacces Help 302 redirect hi, i want to define rule in my htaccess file but i Don't know to can u please tell thanx i want to redirect all urls like http://mydomain.com/dynamicname-staticname.html Rating: 5
-
14th Apr 2012, 01:32 PM #2MemberWebsite's:
servode.comPHP Code:Redirect 302 (.*)-staticname([0-9]+)\.html$ $1-staticname.html
-
14th Apr 2012, 01:36 PM #3OPMemberWebsite's:
eotips.comstaticname should be remain same but dynamic should change. basically i want to redirect old stuff to new url
and staticname1 also remain same
-
14th Apr 2012, 01:38 PM #4MemberWebsite's:
servode.comCan you be more precise please ?
Are their a lot of urls or just a few urls you want to redirect ?
Try what I have given you above first ... that should do what you are trying to do ..
-
14th Apr 2012, 01:43 PM #5OPMemberWebsite's:
eotips.comok let me explain
this is my old structure with lots of stufff but in end name remain static like staticname
http://mydomain.com/somedynamicname-staticname.html
now i want to redirect all traffic coming to my old urls mainly from google will be redirect to
http://mydomain.com/somedynamicname-staticnameversion2.html
staticnameversion2 should remain same throughout structure , but dynamic remain same of my previous url
hope someone should understand
-
14th Apr 2012, 01:59 PM #6MemberWebsite's:
servode.comPHP Code:Redirect 302 (.*)-staticnameversion([0-9]+)\.html$ $1-staticname.html
Have you tried the code that I gave you the first time ?
Let me explain a bit
(.*) - matches 'somedynamicname'
([0-9]+) - is for any number after 'staticnameverion' .
Make sure to turn on the rewritengine before you write these rules..
-
14th Apr 2012, 02:03 PM #7OPMemberWebsite's:
eotips.comthanx yeah working like a charm thanx alot for your time
-
16th Apr 2012, 05:26 PM #8OPMemberWebsite's:
eotips.comcan u please help
RewriteRule ^/rss/(.*)-my-download$ /rss/$1-your-download [R=301,L]
i want to do some thing like this
/rss/something-my-download to /rss/something-your-download
is this write rewrite rule?
-
16th Apr 2012, 05:31 PM #9MemberWebsite's:
servode.comLooks fine , if it does not work , remove '/' before the condition and the rule
-
16th Apr 2012, 05:32 PM #10OPMemberWebsite's:
eotips.commintcol tried but not working can u please rewrite it
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
301 redirect help
By tractor3231 in forum Web Development AreaReplies: 4Last Post: 28th Jul 2011, 04:19 PM -
How to Redirect !
By softleaks in forum Tutorials and GuidesReplies: 12Last Post: 20th Jul 2011, 09:01 AM -
301 Redirect help
By Rox in forum WordpressReplies: 7Last Post: 10th Jul 2011, 09:03 PM -
Redirect your non www url's to www
By hhhgame in forum Tutorials and GuidesReplies: 11Last Post: 2nd Dec 2010, 03:22 PM -
In Need of Url REdirect mod ..?
By litewarez in forum phpBBReplies: 25Last Post: 20th Oct 2009, 08:40 PM
themaLeecher - leech and manage...
Version 5.02 released. Open older version (or...