Overwrite modification does not work in my addon domain

I have a Wordpress website in my primary domain. For the Wordpress website, I have this in a file .htaccess:

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php
</IfModule>

# END WordPress

I just created an addon domain and wanted to use the new rules for it. I created a file .htaccessand put it in the addon folder, for example. /newaddon.

In the file .htaccessI have:

Options -Indexes

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^readjob/(.*)/(.*)/(.*)/$ readjob.php?id=$1&amp;cat=$2&amp;title=$3
</IfModule>

I have a url:

http://www.website.com/readjob/3/jobs/web-designers-potech-integrated-services/

But he continues to tell me that the link is broken. I do not know what to do, please, I need help. I just studied mod by rewriting today, so clarity will be highly appreciated.

+3
source share
2

, , :

-

, , .

.

+ FollowSymlinks

-

RewriteEngine on

RewriteBase/

, -Multiviews htaccess - .: D

+1

HTML, & ( , ). :

RewriteRule ^readjob/(.*)/(.*)/(.*)/$ readjob.php?id=$1&cat=$2&title=$3

, , .*, [^/]+:

RewriteRule ^readjob/([^/]+)/([^/]+)/([^/]+)/$ readjob.php?id=$1&cat=$2&title=$3
0

Source: https://habr.com/ru/post/1767709/


All Articles