WmZilla - Webmaster and Marketplace

The Next Generation Webmaster and Trade Forum

Help with htaccess 301 redirection.

ChristianLamb

New member

0

0%

Status

Offline

Posts

30

Likes

0

Rep

0

Bits

160

5

Months of Service

0%
I have moved my blog from the root directory to the /blog directory. In the htaccess redirection, I used the following code. When accessing the site directly, there is no issue on the homepage, but when coming from Google links, it repeats the /blog tag 20-25 times, meaning site.com//blogblogblogblogblogblogblogblogblogblogblogblogblogblogblogblogblogblogblogblogblog should be the normal link. The htaccess you are using is as follows:

```
Options +FollowSymlinks
RewriteEngine on
ReWriteCond %{HTTP_HOST} ^(www.)?ercandinsel.org$ [NC]
ReWriteRule ^(.*)$ https://www.ercandinsel.org/blog $1 [R=301,L]
```
 

249

6,622

6,642

Top