sueme
Forum Replies Created
-
Forum: Themes and Templates
In reply to: TwentyTen gap between header and bodyResshanney,
Brilliant. Does exactly what I wanted. Thank you very very much
Sueme
Forum: Fixing WordPress
In reply to: Redirect from index.html to index.phpOK Sorted.
Putting the new code under the existing code doesn’t appear to work, but putting the new code at the top does work.
Presumably it diverts index.html to index.php first, then activates the rest of the code.
The full code that works is:
RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ https://mysite.com/$1 [R=301,L] # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Forum: Fixing WordPress
In reply to: Redirect from index.html to index.phpMore info:
My existing .htaccess reads as follows:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
I did a Google search, and it looks as though I may be able to add the following to the .htaccess:
Options +FollowSymLinks RewriteCond %{THE_REQUEST} ^.*/index.html RewriteRule ^(.*)index.html$ https://www.yoursite.com/$1 [R=301,L]
However, I’m not fully sure how to do this and don’t want to screw things up.
Where exactly do I add the second bit of code to the first bit?
Can anyone tell me please?
Forum: Themes and Templates
In reply to: Modifying Twenty TenRVoodoo,
Works a treat.
Thank You Very, Very much.
SueMe
Forum: Themes and Templates
In reply to: Modifying Twenty TenThanks Webjunk,
I don’t mind getting more in depth with the code (Just bought, but not yet read, CSS The Missing Manual).
Just need pointing in the right direction please.