Support Forum
not really... thats how wp pages work... if you show wp page as the home page, its child pages (ie forum pages) still have to show the parent in the url...
Visit Cruise Talk Central and Mr Papa's World
There are a lot of pages and posts within the site that link to the forum.
Would it possible to add an .htaccess rule to redirect all the old pages to the new ones?
From
sitename/discuss/abc
To
sitename/forum/discuss
After doing some research what I'm concerned about is that if I add a rewrite rule with the word discuss in, it will interfere with the new forum pages making them sitename/forum/forum/discuss and break the new forum location.
I am not familiar with rewrite rules but I know what I'm after is
If URL = http://www.sitename.co.uk/discuss/ change to = http://www.sitename.co.uk/forum/discuss
As you have referred before to the forum using some URL rewriting blackmagic would you know what I need to add?
Thanks for your continued help.
Sorry I don't think I was clear, I understand that the forum will display as it is, I would like the rewrite rule for any external links coming in so they will be redirected to the same content but in the new location.
The customer also uses a lot of internal links to their forum within blog posts & pages and a rewrite rule would stop users going to a 404 page.
Well I would still have thought the .htaccess approach would be best for external links coming in.
For 'dead' links within WP posts/pages then it sounds to me like you should perhaps be looking at something like the 'Permalink Redirect' plugin. That should surely do what you want. The only thing about that is that you DO need to exclude the forum slug from it - it has an exclusion section in the setup I understand.
YELLOW
SWORDFISH
|
I have found a good redirect plugin called 404 Redirected which is handling the pages well. But it is redirecting all the forum pages to the main forum page, good but of course we would like it to go through the the correct topic.
I agree that this part should be handled by a rewrite rule butI've been researching this afternoon and still can't figure out how to write the rule for .htaccess do you have any ideas?
Thanks
No - as I said - personally I can not help with the .htaccess rules stuff. I would think there must be huge numbers of pages out on the web dealing with it though.
As I said - any plugin you used would have to have the capability to exclude the forum slug - basically to ignore it which I know can be done with the popular 'Permalink Redirect' plugin.
YELLOW
SWORDFISH
|
good luck... let us know what you find in case others want to do the same...
Visit Cruise Talk Central and Mr Papa's World
I couldn't figure this out so I had to get extra help but I'm happy to share in case it's useful to anyone else.
It's only been active for a short time but seems to be working.
To redirect traffic from the main site to the subsite forum location
Previous Location was /discuss
New location forum/discuss
---------------------------------------------------
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^/(forum)$
Redirect 301 /discuss/ /forum/discuss/
RewriteCond %{REQUEST_URI} !^/(forum)$
Redirect 301 /discuss/(.*) /forum/discuss/$1