GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   301 redirects, still a problem for me.. help please (https://gfy.com/showthread.php?t=1043406)

nico-t 10-27-2011 10:27 AM

301 redirects, still a problem for me.. help please
 
that's something i still dont fully understand how it works, what all those symbols mean etc.
I tried to figure it out with my own htaccess examples which all work perfect on the sites they are on, but somehow it doesnt work.

Wordpress site, i want:

www.mydomain.com/page/1/
www.mydomain.com/page/2/
www.mydomain.com/page/3/ etc... to redirect to:

www.mydomain.com/posts/page/1/
www.mydomain.com/posts/page/2/
www.mydomain.com/posts/page/3/ etc.

How?

nico-t 10-27-2011 10:42 AM

figured it out, page 1 conflicted with WP page 1 default redirect. It's all good now.

nico-t 10-27-2011 10:50 AM

One strange thing though.
I used this code:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^page/1/(.*)$ http://www.mydomain.com/posts/$1 [R=301,L]
RewriteRule ^page/(.*)$ http://www.mydomain.com/posts/page/$1 [R=301,L]

So the /page/1/ goes to /posts/
and the rest like this:
/page/2/ to /posts/page/2/
/page/3/ to /posts/page/3/

Works in IE, but in firefox /page/1/ goes to /posts/1/
Weird. How come?

nico-t 10-27-2011 10:56 AM

jumped the gun, it was the FF cache :helpme
all is good now so nevermind :thumbsup
maybe i'll come back to this thread if i feel like talking to myself again though

HomerSimpson 10-27-2011 11:11 AM

proof that programmers often talk to them selves...
even on forums :)


All times are GMT -7. The time now is 11:23 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc