• I have wordpress under the regular /blog/ url with mod_rewrite for the regular post titles.

    Now outside of the /blog I have a non-wordpress site that sort of incorporates wordpress.

    What I want to do is when someone goes to
    domain.com/pricing

    it would actually fetch /blog/pricing (pricing being a page within WordPress)

    I can’t seem to figure out the htaccess or if I need to modify both the root htaccess and the /blog/.htaccess files.

    Though I could do something like

    RewriteCond %{REQUEST_URI} ^pricing$
    RewriteRule ^pricing/?$ /blog/pricing [L]

    Though that doesn’t seem to work. Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • I would do it like this:

    RewriteEngine On
    RewriteRule ^pricing?$ /blog/pricing [L]
    Thread Starter DynamicShark

    (@dynamicshark)

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

    Is my htaccess file

    The pricing line still isn’t working.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Modifying htaccess’ is closed to new replies.