bowa
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: RewriteRule for ‘virtual host’ pointing to subdirectoryi 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 is showing
http://www.firstdomain.com/my-special-category/lorep-ipsum
correctlybut
http://www.seconddomain.com/
redirects to my 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
In reply to: The Loop and number of resultsno-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
In reply to: /search/keyword instead of /?s=keywordi 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);
?>