Originally Posted by
SeijiSensei
Only some Apache directives can be put in .htaccess.
This is a new site, nothing built yet. I have been playing around on ./htaccess on Godaddy as follow;
Have .htaccess duplicated as .htaccess_copy
WordPress was installed on /WPReynold
./htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /WPReynold/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /WPReynold/index.php [L]
</IfModule>
....
....
Add following lines to the bottom of the above section
Code:
RewriteCond %{HTTP_HOST} ^reynoldstocks\.com$
RewriteRule (.*) http://www.reynoldstocks.com/$1 [R=301,L]
RewriteRule ^$ WPReynold [L]
Reload the webpage
On browser ran;
Code:
http://www.reynoldstocks.com
it popup "Future home of something quite cool" page
Ran;
Code:
http://www.reynoldstocks.com/WPReynold
It changed back to
Code:
http://www.reynoldstocks.com
immediately.
Deleted the tesing .htaccess file and changed the duplicated file back to .htaccess
Restart the browser (this step is important others it won't work)
Then running /reynoldstocks.com/WPReynold works again displaying WordPress front page.
Any advice? TIA
Unfortunately the
Alias directive, which might be helpful here, is one of them. But you can only use directives like that in the server configuration file, at which point the easiest solutioin is simply to point the DocumentRoot to the directory of your choosing.
Could you please explain in more detail? Thanks
B.R.
satimis
Bookmarks