Permalinks .htaccess GoDaddy trouble
-
First of all, I am hosted by GoDaddy, so I had to create my .htaccess file (is it supposed to have a .txt extension?) I have been trying for 2 weeks to get it to work right. Is this what my .htaccess file is supposed to have in it? I don’t think my WordPress has had any luck putting anything in there. I just copied and pasted this from a website. Please help! Need to launch soon!
AddHandler x-httpd-php5 .php
AddHandler x-httpd-php .php4
Options -MultiViews# BEGIN WordPress
RedirectMatch permanent index.php/(.*) https://domain.tld/$1
<ifmodule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.cockydeals\.tld$ [NC]
RewriteRule ^(.*)$ https://cockydeals.tld%{REQUEST_URI} [R=301,L]
RewriteBase /
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.(html|php)\ HTTP/
RewriteRule ^(([^/]+/)*)index\.(html|php)$ https://domain.tld/$1 [R=301,L]
RewriteCond %{REQUEST_URI} /+[^\.]+$
RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</ifmodule>
# END WordPress
- The topic ‘Permalinks .htaccess GoDaddy trouble’ is closed to new replies.