خرید بک لینک

Vote count: 0

I have a Wordpress installation at the subfolder www.domain.com/blog of my domain. It has it's own 404 page which unfortunately also shows if a page can't be found on my main website.

I'd like to have a 404 redirection of my main Website and the Wordpress one for my blog in the subfolder.

This is the code I have until now. But the second one is overweriting the first. How can I make the wordpress redirection only apply to the subfolder?

RewriteEngine On
RewriteCond %{HTTP_HOST} !^(www.)?domain.com$ [NC]
RewriteRule ^(.*) http://www.domain.com/$1 [R=301,NE,L]

ErrorDocument 404 /notfound/404.html

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>

I hope that was clear :) Thanks!

asked 4 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 27 فروردين 1395 ساعت: 22:26

صفحه بندی