Title: bowa's Replies | WordPress.org

---

# bowa

  [  ](https://wordpress.org/support/users/bowa/)

 *   [Profile](https://wordpress.org/support/users/bowa/)
 *   [Topics Started](https://wordpress.org/support/users/bowa/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bowa/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bowa/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bowa/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bowa/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bowa/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [RewriteRule for ‘virtual host’ pointing to subdirectory](https://wordpress.org/support/topic/rewriterule-for-virtual-host-pointing-to-subdirectory/)
 *  Thread Starter [bowa](https://wordpress.org/support/users/bowa/)
 * (@bowa)
 * [17 years, 7 months ago](https://wordpress.org/support/topic/rewriterule-for-virtual-host-pointing-to-subdirectory/#post-932495)
 * i worked this out ….
 * i put this in my .htaccess
 *     ```
       RewriteCond %{HTTP_HOST}        ^www.seconddomain.com
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule ^(.*) /index.php/my-special-category/$1 [L]
   
       #The default wordpress things
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       ```
   
 * [http://www.seconddomain.com/lorem-ipsum](http://www.seconddomain.com/lorem-ipsum)
   is showing
    [http://www.firstdomain.com/my-special-category/lorep-ipsum](http://www.firstdomain.com/my-special-category/lorep-ipsum)
   correctly
 * but
    [http://www.seconddomain.com/](http://www.seconddomain.com/) redirects to
   my [http://www.firstdomain.com](http://www.firstdomain.com) and i think it is
   something in the wordpress rewrite class that does something special for ^/$
 * anyone has a clue ?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [The Loop and number of results](https://wordpress.org/support/topic/the-loop-and-number-of-results/)
 *  Thread Starter [bowa](https://wordpress.org/support/users/bowa/)
 * (@bowa)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/the-loop-and-number-of-results/#post-547392)
 * no-one who can help me ?
 * i thought this would be a really easy question, another approach, is there a 
   way to know from the code if i am on the homepage or if i am on one of the paged-
   pages from the homepage content ? in other words if i am in / or /page/2/ but
   i would prefer doing it without having to look at the request uri, this information
   should be available somewhere? no ?
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [/search/keyword instead of /?s=keyword](https://wordpress.org/support/topic/searchkeyword-instead-of-skeyword/)
 *  Thread Starter [bowa](https://wordpress.org/support/users/bowa/)
 * (@bowa)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/searchkeyword-instead-of-skeyword/#post-545167)
 * i created a dummy search page that takes the post variable and creates the right
   link, now i get the nice /search/keyword urls in my google analytics
 * <?php
    $searchterm = $_POST[“s”]; $searchurl = “/search/”; $redirecturl = $searchurl.
   $searchterm; header(“Location: ” . $redirecturl); ?>

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