Using a pre-existing subdirectory install - search on page dont work any longer
I followed this steps when I should get wordpress/classipress running from root.
Using a pre-existing subdirectory install
1. Go to the General panel.
2. In the box for Site address (URL): change the address to the root directory's URL. Example:
http://example.com
3. Click Save Changes.
4. Copy (NOT MOVE!) the index.php and .htaccess files from the WordPress (wordpress in our example) directory into the
root directory of your site—the latter is probably named something like www or public_html. The .htaccess file is
invisible, so you may have to set your FTP client to show hidden files.
If you are not using pretty permalinks, then you may not have a .htaccess file.
5. Edit your root directory's index.php.
Open your root directory's index.php file in a text editor
Change the line that says: require('./
wp-blog-header.php');
to the following, using your directory name for the WordPress core files: require('./wordpress/
wp-blog-header.php');
Save the file.
6. Login to your site (if you aren't still already). The URL should still be
http://example.com/wordpress/wp-admin/
7. If you have set up Permalinks, go to the Permalinks panel and update your Permalink structure. WordPress will automatically
update your .htaccess file if it has the appropriate file permissions. If WordPress can't write to your .htaccess file, it
will display the new rewrite rules to you, which you should manually copy into your .htaccess file
(in the same directory as the main index.php file.)
After almost everything looks and works just fine just the search do not work any longer?
When hovering the search-button the adress still goes to the folder where I installed wordpress and classipress 3.2.
All others links looks and works as they where installed directly under root???
Where and how can I change so the search will work again? Strange thing is that mobil-theme the search-function works just fine.
When viewing the source I found the error is in the form-adress:
<form action="http://example.com/
wp/" method="get" id="searchform" class="form_search"> <div class="searchfield">
the correct should be (without wp folder)
<form action="http://example.com/" method="get" id="searchform" class="form_search"> <div class="searchfield">
I have searched for it a long time now without any luck, so if someone now how to fix it please advice.
My site is now live and having existing payed ads in it, so I don´t want to test to much without knowing what to do
//Bengt