Forums

ISP asking for rewrite rules. (2 posts)

  1. gdarwin
    Member
    Posted 5 years ago #

    Quote from ISP:
    "If you have a list of the rewrite rules we need to put in place and
    the directory they need to go into, we can get them in place."

    Anyone know what they are asking for? New install.

  2. vkaryl
    Member
    Posted 5 years ago #

    Is it that they have to manipulate the .htaccess file as opposed to letting you + wordpress handle it?

    If so, here's the info for a root install:

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

    and what wp produces in a subfolder (replace the * areas with your own domain info):

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

    The other thing is that if you're using something besides the regular permalinks, that's going to need changing within wp. So what you can do is select the setup you want and then copy what wp shows in the field at the bottom of the page if your .htaccess isn't writeable.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags