Title: Modifying htaccess
Last modified: August 22, 2016

---

# Modifying htaccess

 *  [DynamicShark](https://wordpress.org/support/users/dynamicshark/)
 * (@dynamicshark)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/modifying-htaccess-1/)
 * 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)

 *  [2bearstudio](https://wordpress.org/support/users/2bearstudio/)
 * (@2bearstudio)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/modifying-htaccess-1/#post-5721750)
 * I would do it like this:
 *     ```
       RewriteEngine On
       RewriteRule ^pricing?$ /blog/pricing [L]
       ```
   
 *  Thread Starter [DynamicShark](https://wordpress.org/support/users/dynamicshark/)
 * (@dynamicshark)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/modifying-htaccess-1/#post-5721897)
 *     ```
       <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.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [mod_rewrite](https://wordpress.org/support/topic-tag/mod_rewrite/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [DynamicShark](https://wordpress.org/support/users/dynamicshark/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/modifying-htaccess-1/#post-5721897)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
