Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » Running WordPress » Web Hosting for WordPress »

How to redirect complete subfolders?


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Apr 27, 2012, 01:03 PM
Hody's Avatar
Hody
 
152 posts · Apr 2012
Hello,

thanx to the help within the community I was able to re-launch my website yesterday in a new design based on Atahualpa - Thumbs Up!

Now I have a problem with 404 posts and sadly was not able to find a working plugin that would handle he problem with one general setting, supporting $S. There is one out there called redirection, but once activated it shuts down all the traffic to my site, seems to be broken.

The probem is that I only need to forward certain subfolders of the old html page.

The syntax of its links were:

Page/Topic/../Uptodate/content.html

Now the URL should be:

Archive/Page/Topic/../Uptodate/content.html

The bold part will always be exactly the same and not interefering with any wordpress permalinks, so I think it should somehow be possible to redirect the paths with some kind of wildcard like $S through wpconfig or htacess.

something like Page/Topic/$S = Archive/Page/Topic/$S

Thank you
__________________
...that I rock, doesn´t mean I am made of stone!
My Blog: Diary of a Fatman - Run Fatboy Run! - Tribe Online Magazine - Freiburg
  #2  
Old Apr 27, 2012, 03:05 PM
juggledad's Avatar
juggledad
 
20,151 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
you should read up about the .htaccess file and how to specify redirects. But that issue is not for this forum.
  #3  
Old Apr 27, 2012, 10:15 PM
Jam's Avatar
Jam
 
946 posts · Mar 2011
Perth, Western Australia
Probably better that you read up first, but I use 301 redirects often after shifting/rebuilding pages/sites.
I FTP a copy of my .htaccess file to local computer for safe keeping.
Edit a copy and upload to include a simple 301 redirect:

Existing .htaccess should look something like:
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Add a redirect for complete folder:

Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
Redirect 301 /oldfolder http://www.yourdomain.com/newfolder

or redirect from an old page to a new page etc
Code:
Redirect 301 /oldpage.html http://www.yourdomain.com/newfolder
If you try this just make sure you have a copy of the original .htaccess file to replace the new one if it makes your website fall over! oh and do a complete backup before you touch anything
__________________
Windows 7 | TF | EasyPHP |
May the learning curve never plateau... of course it would help if I could remember the stuff I've already learnt once! Thanks Larry for teaching me heaps

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Favicon not showing on redirect sjlong Atahualpa 3 Wordpress theme 6 Dec 3, 2010 04:48 PM
Please help a complete beginner MattyL Atahualpa 3 Wordpress theme 5 Nov 24, 2010 01:41 AM
CSS Style and Redirect 2sticks Customization, Design, Programming... 0 Oct 18, 2010 03:34 PM
[SOLVED] How to do a redirect? Shepherd Jim Web Hosting for WordPress 3 Apr 18, 2009 09:12 AM
How do I do a complete uninstall? bseppa Atahualpa 3 Wordpress theme 2 Dec 12, 2008 03:39 PM


All times are GMT -6. The time now is 11:58 PM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.