Topic: How can I solve 301 redirect in Punbb 1.3

Permanent Redirect Not Found

Search engines may think forum.banglalibrary.org and www.forum.banglalibrary.org are two different sites.You should set up a permanent redirect (technically called a "301 redirect") between these sites. Once you do that, you will get full search engine credit for your work on these sites.

Due to this error we lose our valuable hits.

We create a new .htaccess file with the redirect code in it. The above mentioned problem was solved. But a major problem arises that no one can not log in or register in forum. Even administration user id was not working.

Then we delete the .htaccess file. After that the login problem was resolved. We try to add this code in the .htaccess.dist, but it also provides no positive result for redirect. How can we use the redirect code?

BENGALI E LIBRARY
http://forum.banglalibrary.org, www.banglalibrary.org
Jyoti Tower, P-313, Nabapally, Salt Lake, Sector-IV, Kolkata-700105
E. M BYPASS, BUS STOP : CHINGRIHATA
PH : 033-23353176, +919831193298, +919836422308

Re: How can I solve 301 redirect in Punbb 1.3

There is no need to add something to .htaccess.dist. This file contains a code to be placed into .htaccess if one wants to use URL schemes like folder-based.

Are there any error messages? Please, post here what redirect code you are trying to use.

Re: How can I solve 301 redirect in Punbb 1.3

In config.php file, what is your $base_url set to?

Re: How can I solve 301 redirect in Punbb 1.3

HaHA! I have already seen the great thing!!!

Re: How can I solve 301 redirect in Punbb 1.3

Parpalak wrote:

There is no need to add something to .htaccess.dist. This file contains a code to be placed into .htaccess if one wants to use URL schemes like folder-based.

Are there any error messages? Please, post here what redirect code you are trying to use.


The above redirect 301 error found when I put my forum's url in websitegrader.com.

I try to use the redirect code :

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum.banglalibrary\.org$ [NC]
RewriteRule ^(.*)$ http://www\.forum.banglalibrary.org/$1 [R=301,L]

BENGALI E LIBRARY
http://forum.banglalibrary.org, www.banglalibrary.org
Jyoti Tower, P-313, Nabapally, Salt Lake, Sector-IV, Kolkata-700105
E. M BYPASS, BUS STOP : CHINGRIHATA
PH : 033-23353176, +919831193298, +919836422308

Re: How can I solve 301 redirect in Punbb 1.3

Try this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.banglalibrary\.org$ [NC]
RewriteRule ^(.*)$ http://www.forum.banglalibrary.org/$1 [R=301,L]

7

Re: How can I solve 301 redirect in Punbb 1.3

I am very happy to see that many of them share their great views. It really motivates me a lot to work in the finest manner. This kind of thing is must needed in this competitive world.

Re: How can I solve 301 redirect in Punbb 1.3

ridgerunner wrote:

In config.php file, what is your $base_url set to?

My base url is

http://forum.banglalibrary.org

BENGALI E LIBRARY
http://forum.banglalibrary.org, www.banglalibrary.org
Jyoti Tower, P-313, Nabapally, Salt Lake, Sector-IV, Kolkata-700105
E. M BYPASS, BUS STOP : CHINGRIHATA
PH : 033-23353176, +919831193298, +919836422308

Re: How can I solve 301 redirect in Punbb 1.3

Parpalak wrote:

Try this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.banglalibrary\.org$ [NC]
RewriteRule ^(.*)$ http://www.forum.banglalibrary.org/$1 [R=301,L]

Where should I put this code? In dist file or create a new .htaccess file with this code along with code in the dist file?

BENGALI E LIBRARY
http://forum.banglalibrary.org, www.banglalibrary.org
Jyoti Tower, P-313, Nabapally, Salt Lake, Sector-IV, Kolkata-700105
E. M BYPASS, BUS STOP : CHINGRIHATA
PH : 033-23353176, +919831193298, +919836422308

Re: How can I solve 301 redirect in Punbb 1.3

I've already written about .htaccess.dist.

Parpalak wrote:

There is no need to add something to .htaccess.dist. This file contains a code to be placed into .htaccess if one wants to use URL schemes like folder-based.

If you do not use URL schemes just forget about it smile

If you had no .htaccess before you have to create it and write there

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.banglalibrary\.org$ [NC]
RewriteRule ^(.*)$ http://www.forum.banglalibrary.org/$1 [R=301,L]

11 (edited by banglalibrary 2009-11-14 07:18)

Re: How can I solve 301 redirect in Punbb 1.3

Parpalak wrote:

I've already written about .htaccess.dist.

Parpalak wrote:

There is no need to add something to .htaccess.dist. This file contains a code to be placed into .htaccess if one wants to use URL schemes like folder-based.

If you do not use URL schemes just forget about it smile

If you had no .htaccess before you have to create it and write there

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum\.banglalibrary\.org$ [NC]
RewriteRule ^(.*)$ http://www.forum.banglalibrary.org/$1 [R=301,L]

I write this in a new .htaccess file and upload it in forum. But after that redirect problem is solved but no one even administrator can log in or registrar in the forum. That's why I seek assistance.

BENGALI E LIBRARY
http://forum.banglalibrary.org, www.banglalibrary.org
Jyoti Tower, P-313, Nabapally, Salt Lake, Sector-IV, Kolkata-700105
E. M BYPASS, BUS STOP : CHINGRIHATA
PH : 033-23353176, +919831193298, +919836422308

Re: How can I solve 301 redirect in Punbb 1.3

Try to edit the $base_url variable in config.php. Seems like it should be 'http://www.forum.banglalibrary.org'.

Re: How can I solve 301 redirect in Punbb 1.3

Hi,
It is a great opportunity for the people to show a better amount of interest in their work to meet the perfectness in their work. It really makes everyone to know about the different types of configuration about the php. I personally thanks everyone for making a greatest contribution in a good way.