Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Johninbc

    (@johninbc)

    Thanks for he assistance, but my client has chosen to go another route…
    No subsites, no wordpress… too much hassle.

    Again, thanks.
    John

    Thread Starter Johninbc

    (@johninbc)

    One person suggested…
    Seems that Apache 2.2 needs to see the query string and have those extra codes at the end of the RewriteRule

    so I added

    RewriteCond %{QUERY_STRING} ^(.*&)?page=([^&]+)(&.*)?$ [NC]
    RewriteRule ^index\.php$ /tpb/%2? [R,L]

    And it really didn’t like that…

    Here is my htaccess code as it is now….

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]
    
    # END WordPress

    Taken directly from the setup instructions as provided by wordpress…

    Thread Starter Johninbc

    (@johninbc)

    WEll it partly works.. It appears that the dashboard for each of the sections is functioning… For example, when accessing the dashboard for the store section from the drop down admin menu at the top of the screen the URL comes up mysite.com/store/wp-admin.php… Same for the other two sections… But when trying to view the store site, which should be mysite.com/store/index.php I only get a directory.
    Therefore I can assume that the redirect in htaccess is functioning, just not when index.php is called.

Viewing 3 replies - 1 through 3 (of 3 total)