MyBB Community Forums

Full Version: redirection for / urls
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
dear sir
if some one use a slash at the end of url then does not redirects to the correct url (without slash)
it shows a 404 error

example url check it with and without end slash


http://www.swstarone-sat.com/thread-about-direct-to-home-services


http://www.swstarone-sat.com/thread-about-direct-to-home-services/

Error:

404 Not Found

(Error label: 'googleseo_404_notfound')
slash at the end is not expected to work. see more details here => Google SEO virtual directory structure
Dear sir I migrated forum bbpress and in bbpress my most of urls was ending with slash.
after migrating I used following htaccess commands to rewrite from bbpress to mybb forum

Redirect 301 /topic/ http://www.swstarone-sat.com/thread-
Redirect 301 /reply/ http://www.swstarone-sat.com/topic-
Redirect 301 /forum/ http://www.swstarone-sat.com/forum-
Redirect 301 /topic-tag/ http://www.swstarone-sat.com/thread-


this url was on bbpress
http://www.swstarone-sat.com/topic/about...-services/
it redirects to
http://www.swstarone-sat.com/thread-abou...-services/

and it gots error 404
^ check if this helps
Dear sir, my web have nothing slash url problem
i just wants to redirect from slah to non slash url

I have found a settings which for to redirect from non slash end to slash end
but I required from slash end to non slash end.

and here is setting

<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
</IfModule>

please help me to change the order.
Dear sir problem have resolved with following lines I added in htaccess

RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]