![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Hey...
Industry Role:
Join Date: Nov 2011
Location: NL
Posts: 548
|
any htacces expert ?
Can anyone please do me a favour.
Been looking to fix this for days. Fixed most of the htaccess rules i needed but one last one left. I've changed a lot on my site and old urls are not valid anymore. I can't redirect them to the new script because it does not have old content anymore. I need this. http://www.mydomain/entry/19907/i-fucking-love-gfy with a permanent 301 redirect to http://old.mydomain/entry/19907/i-fucking-love-gfy anyone with the solution will be my online hero forever! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
|
try this
//301 Redirect Entire Directory RedirectMatch 301 old(.*) www/$1 ref: http://www.htaccessredirect.net/index.php
__________________
SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Hey...
Industry Role:
Join Date: Nov 2011
Location: NL
Posts: 548
|
That made the site crash to be honest
![]() But thanks to that site i got pointed into the right direction and so far i did this RedirectMatch 301 /entry/(.*)/ http://old.mydomain.com/entry/$1 Eventually this is the url that you enter: http://old.mydomain.com/entry/2190 Still missing the txt AFTER the video id (in this case 2190) |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
It's 42
Industry Role:
Join Date: Jun 2010
Location: Global
Posts: 18,083
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Industry Role:
Join Date: Jan 2012
Location: NC
Posts: 7,683
|
Quote:
it was meant for directories and not for subdomains. so you want www to go to old //Rewrite to www Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^www.mydomain.com[nc] RewriteRule ^(.*)$ http://old.mydomain.com/$1 [r=301,nc] ################################################ so you want old to go to www //Rewrite to www Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^old.mydomain.com[nc] RewriteRule ^(.*)$ http://www.mydomain.com/$1 [r=301,nc] you can add QSA too at the end.
__________________
SSD Cloud Server, VPS Server, Simple Cloud Hosting | DigitalOcean
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |