redirect all SEO pages to a specific page

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

redirect all SEO pages to a specific page

Postby yatinbhatt » Wed Mar 17, 2010 4:25 am

Hi,

I am shutting down my forum for maintenance and would like all my SEO URL's to a single page.

How can I achieve this ??? like all SEO to -http://site/forum/index.html

thanks
YB
yatinbhatt
 
Posts: 27
Joined: Wed Aug 20, 2008 10:23 am

Advertisement

Re: redirect all SEO pages to a specific page

Postby yatinbhatt » Wed Mar 17, 2010 4:56 am

found the solution anyways...

May be helpful to someone.

- renamed the forum folder
- created 404.shtml file with message
- denied robots.txt for all bots

simple !!

thanks
YB
yatinbhatt
 
Posts: 27
Joined: Wed Aug 20, 2008 10:23 am

Re: redirect all SEO pages to a specific page

Postby SeO » Wed Mar 17, 2010 8:22 am

For maintenance, you don't want to use robots.txt, because bots do not expect the disallow to be temporary.

Way to go would be to just use the phpBB acp to close the forum while you're working on it, or eventually to HTTP 302 redirect everything to a custom page, but you would need to use a condition on your ip to let you in in the mean time, with maintenance.html as your maintenance page and xxx.xxx.xxx.xxx as your ip it would be like :

Code: Select all
RewriteCond %{REMOTE_ADDR} !^xxx.xxx.xxx.xxx$
RewriteCond %{REQUEST_URI} !maitenance\.html$ [NC]
RewriteRule ^.*$ maitenance.html [L,NC,R=302]
SeO
Admin
Admin
 
Posts: 6333
Joined: Wed Mar 15, 2006 9:41 pm

Re: redirect all SEO pages to a specific page

Postby yatinbhatt » Wed Mar 17, 2010 9:00 am

Actually this is little more than a regular maintenance. It could be for a long time.

I'll check on your suggestions too.

Thanks for the tip

thanks
YB
yatinbhatt
 
Posts: 27
Joined: Wed Aug 20, 2008 10:23 am


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 3 guests