• Hi,

    My website has an existing rewrite already in the .htaccess which is the following:

    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-d
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
    </IfModule>

    With this rewrite in place I’m able to navigate my regular website properly and the index page of my WordPress site loads properly at the following domain.

    https://www.domain.com/wp

    When I hover over the URLs listed in my WordPress site they seem to show up properly with the Post name Permalinks.

    https://www.domain.com/wp/hello-world

    However, when I click on one the link the page is not found. I’m guessing it’s because I don’t have the exact rewrite code that WordPress provided me installed below.

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

    However, if I install the code above then the links on my regular website don’t work properly and I get sent to my WordPress site.

    Does anyone know how I can properly set this .htaccess rewrite code up so everying works properly?

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • When I hover over the URLs listed in my WordPress site they seem to show up properly with the Post name Permalinks.

    What happens when you click them?

    Thread Starter olimits7

    (@olimits7)

    It brings me to my regular website’s page can not be found message.

    We’re sorry…
    The Page you are looking for cannot be found.

    Put the .htaccess file in the root of WP which seems to be /wp/ and use the default permalink setup for that .htaccess file….the root site may or may need it’s own .htaccess, but does not need the WP rewrite rules…

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Permalinks (Post name) – Existing Rewrite Causing Issues?’ is closed to new replies.