21493 Posts in 5784 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2168 Views |
-
URL Rewriting

10 July 2009 at 6:26am
I want to modify the .htaccess file so that the traffic directed to www.mysite.com/blog is redirected to www.mysite.com/blog/
I tried
RewriteCond %{HTTP_HOST} ^mysite.com/blog$
RewriteRule ^(.*)$ http://www.mysite.com/blog/$ /$1 [r=301,nc]But nothin seems to work , please help.
-
Re: URL Rewriting

20 July 2009 at 9:56pm Last edited: 20 July 2009 10:02pm
I'm having quiet similar problem.
While trying to do blog claim on technorati, it fails. It might be due to the reason that part of the url is being stripped by Technorati. www.domain.com/blog/ -> www.domain.com/blog
Silverstripe redirects www.domain.com/blog -> www.domain.com/blog/?url=/blogHave anyone found a solution for this problem?
-
Re: URL Rewriting

27 August 2009 at 11:41pm Last edited: 28 August 2009 12:01am
My workaround for the blog redirect problem
NB! Works only with apache server rewritterAdd the 2 following lines into .htaccess file after RewriteEngine On on line 10
...
RewriteCond %{REQUEST_URI} ^/([\w_-]+)([^/]{1})$
RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]....
| 2168 Views | ||
|
Page:
1
|
Go to Top |

