Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-27-2011, 10:27 AM   #1
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2011, 10:42 AM   #2
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
figured it out, page 1 conflicted with WP page 1 default redirect. It's all good now.
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2011, 10:50 AM   #3
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
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 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2011, 10:56 AM   #4
nico-t
emperor of my world
 
Join Date: Aug 2004
Location: nethalands
Posts: 29,903
jumped the gun, it was the FF cache
all is good now so nevermind
maybe i'll come back to this thread if i feel like talking to myself again though
nico-t is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-27-2011, 11:11 AM   #5
HomerSimpson
Too lazy to set a custom title
 
HomerSimpson's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: Springfield
Posts: 13,826
proof that programmers often talk to them selves...
even on forums
__________________
Make a bank with Chaturbate - the best selling webcam program
Ads that can't be block with AdBlockers !!! /// Best paying popup program (Bitcoin payouts) !!!

PHP, MySql, Smarty, CodeIgniter, Laravel, WordPress, NATS... fixing stuff, server migrations & optimizations... My ICQ: 27429884 | Email:
HomerSimpson is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.