Jump to content

404 error showing 500 error


Guest georgene

Recommended Posts

Guest georgene

It works which means the /home/georgene/public_html/.htaccess file is the problem. This is the code I have on there (wordpress is definitely causing the problem, but I won't delete it).

# BEGIN WpFastestCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTPS} =on
RewriteCond %{HTTP_HOST} ^3d.mackproductions.com
# Start WPFC Exclude
# End WPFC Exclude
# Start_WPFC_Exclude_Admin_Cookie
RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=georgene
# End_WPFC_Exclude_Admin_Cookie
RewriteCond %{HTTP_HOST} ^3d.mackproductions.com
RewriteCond %{HTTP_USER_AGENT} !(facebookexternalhit|WP_FASTEST_CACHE_CSS_VALIDATOR|Twitterbot|LinkedInBot|WhatsApp|Mediatoolkitbot)
RewriteCond %{HTTP_USER_AGENT} !(WP\sFastest\sCache\sPreload(\siPhone\sMobile)?\s*Bot)
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{REQUEST_URI} !(\/){2}$
RewriteCond %{REQUEST_URI} \/$
RewriteCond %{QUERY_STRING} !.+
RewriteCond %{HTTP:Cookie} !comment_author_
RewriteCond %{HTTP:Cookie} !safirmobilswitcher=mobil
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/all/$1/index.html -f [or]
RewriteCond /home/georgene/public_html/wp-content/cache/all/$1/index.html -f
RewriteRule ^(.*) "/wp-content/cache/all/$1/index.html" [L]
</IfModule>
<FilesMatch "index\.(html|htm)$">
AddDefaultCharset UTF-8
<ifModule mod_headers.c>
FileETag None
Header unset ETag
Header set Cache-Control "max-age=0, no-cache, no-store, must-revalidate"
Header set Pragma "no-cache"
Header set Expires "Mon, 29 Oct 1923 20:30:00 GMT"
</ifModule>
</FilesMatch>
# END WpFastestCache
# BEGIN GzipWpFastestCache
<IfModule mod_deflate.c>
AddType x-font/woff .woff
AddType x-font/ttf .ttf
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-font-ttf
AddOutputFilterByType DEFLATE x-font/ttf
AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
AddOutputFilterByType DEFLATE font/opentype font/ttf font/eot font/otf
</IfModule>
# END GzipWpFastestCache
# BEGIN LBCWpFastestCache
<FilesMatch "\.(webm|ogg|mp4|ico|pdf|flv|jpg|jpeg|png|gif|webp|js|css|swf|x-html|css|xml|js|woff|woff2|otf|ttf|svg|eot)(\.gz)?$">
<IfModule mod_expires.c>
AddType application/font-woff2 .woff2
AddType application/x-font-opentype .otf
ExpiresActive On
ExpiresDefault A0
ExpiresByType video/webm A10368000
ExpiresByType video/ogg A10368000
ExpiresByType video/mp4 A10368000
ExpiresByType image/webp A10368000
ExpiresByType image/gif A10368000
ExpiresByType image/png A10368000
ExpiresByType image/jpg A10368000
ExpiresByType image/jpeg A10368000
ExpiresByType image/ico A10368000
ExpiresByType image/svg+xml A10368000
ExpiresByType text/css A10368000
ExpiresByType text/javascript A10368000
ExpiresByType application/javascript A10368000
ExpiresByType application/x-javascript A10368000
ExpiresByType application/font-woff2 A10368000
ExpiresByType application/x-font-opentype A10368000
ExpiresByType application/x-font-truetype A10368000
</IfModule>
<IfModule mod_headers.c>
Header set Expires "max-age=A10368000, public"
Header unset ETag
Header set Connection keep-alive
FileETag None
</IfModule>
</FilesMatch>
# END LBCWpFastestCache


# BEGIN WordPress
# The directives (lines) between `BEGIN WordPress` and `END WordPress` are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<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

RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} ^3d.mackproductions\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.3d.mackproductions\.com$
RewriteRule .* https://3d.mackproductions.com%{REQUEST_URI} [R=301,L]

# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php72” package as the default “PHP” programming language.
<IfModule mime_module>
  AddType application/x-httpd-ea-php72 .php .php7 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit

Link to comment
Share on other sites

Guest georgene

I highly doubt you are able to fix this changing the code since "Any changes to the directives between these markers will be overwritten." However, would it work if I create an FTP account only for vincentb.ml

Link to comment
Share on other sites

The way apache works is it uses .htaccess from any parent directories in addition to the directory that your request is for. One thing that I can think of that would prevent your wordpress install from messing up your new addon domain is you could change your main domain to something like georgene.heliohost.us and then move your wordpress install and that domain to an addon domain. That way the .htaccess from wordpress wouldn't be in the parent directory of your vincentb.ml domain. Let us know if you need any help.

Link to comment
Share on other sites

Guest georgene

Okay so, I change my main domain to georgene.heliohost.us here. Then, I add back 3d.mackproductions.com as an addon domain and I move all files from georgene.heliohost.us to 3d.mackproductions.com. So, no action within wordpress.

Can you please confirm that before I do it?

Link to comment
Share on other sites

Guest georgene

That brings me back to another problem. "(XID 5h2jw6) Sorry, the domain is already pointed to an IP address that does not appear to use DNS servers associated with this server. Please transfer the domain to this servers nameservers or have your administrator add one of its nameservers to /etc/ips.remotedns and make the proper A entries on that remote nameserver." Someone in the admin (maybe you) told me to just ask you to add the domain manually, since cpanel doesn't like the fact that the domain 3d.mackproductions.com only has an A record pointed to the ricky ip and www.3d.mackproductions.com has an A record too (but, no NS). I know that this makes mail not work properly, but I don't mind that. 

Link to comment
Share on other sites

Guest georgene

I added the 3d.georgene.heliohost.us subdomain. 

 

Hovewer, Wolstech also said that "Also, we can add manually extra domains to your account for you." in a previous request. So, it appeared more simple to me. But, if it works like that I have no problem.

Link to comment
Share on other sites

 

Hovewer, Wolstech also said that "Also, we can add manually extra domains to your account for you." in a previous request. So, it appeared more simple to me. But, if it works like that I have no problem.

This is usually mentioned in reference to users wanting more than one of the *.heliohost.us domains, since there is no way to do this on the user's end.

 

However, it also tends to apply when you want to host a single subdomain of a domain that's not hosted here on our server.

 

Please keep in mind that even if we add such a domain, you won't have full functionality unless the domain's current name server supports delegating the subdomain to our name servers (using an A or CNAME is only sufficient if you just need a website, things like email, etc. will have trouble with this configuration), and we often won't/can't provide support for issues related to domains configured using A or CNAME records.

Link to comment
Share on other sites

Guest georgene

It was working fine previoustly with only A records. Sending mail didn't work, but that is fine with me.

Please add it for me even though there is no NS.

Thanks

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...