![]() |
![]() |
![]() |
||||
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 |
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
.htaccess help
Situation: Moved wordpress from /blog to root.
New setup has a new front end, but the old blog posts are now being directed to /blog/ (works fine). Problem: The indexed search engine pages for "search" (http://www.domain.com/blog/?s=widget) are now 404. How can I use .htaccess to redirect /blog/?s=widget to domain.com/?s=widget Thanks |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Oct 2011
Location: Munich
Posts: 411
|
Not tested, but try something like:
Code:
RedirectMatch 301 ^/blog/(.*)$ http://www.domain.com/$1
__________________
http://kazymjir.com/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
(>^_^)b
Industry Role:
Join Date: Dec 2011
Posts: 7,223
|
What about a plugin like http://wordpress.org/extend/plugins/404-redirected/
__________________
![]() I've referred over $1.7mil in spending this past year, you should join in. ![]() ![]() I make a lot more money in the medical field in a lab now, fuck you guys. Don't ask me to come back, but do join Chaturbate in my sig, it still makes bank without me touching shit for years.. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 | ||
Confirmed User
Join Date: Apr 2002
Location: State Of Bliss
Posts: 2,438
|
Quote:
Quote:
|
||
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
Code:
Options +FollowSymLinks RewriteEngine on RewriteCond %{HTTP_HOST} ^fris\.net [NC] RewriteRule ^(.*)$ /$1 [L,R=301]
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Industry Role:
Join Date: Feb 2008
Location: South of the border
Posts: 1,682
|
This one is specifically for the search pages, rather than all things
Code:
RewriteEngine On RewriteRule ^\?s\=([^/]*)$ /blog/?s=$1 [L] ![]()
__________________
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed IT Professional
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
|
Simply append [QSA] to your existing rule.
When all else fails, consult the source: http://httpd.apache.org/docs/current...d_rewrite.html
__________________
The Best Affiliate Software, Ever. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Industry Role:
Join Date: Oct 2001
Location: Toronto
Posts: 7,103
|
Not much help, but when all else fails... Weird Al for GOD! He's got my vote... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed IT Professional
Industry Role:
Join Date: Nov 2005
Location: Hollywood, CA
Posts: 3,744
|
You're a moron and obviously didn't take anything into account. Typical CA.
__________________
The Best Affiliate Software, Ever. |
![]() |
![]() ![]() ![]() ![]() ![]() |