Last active
June 25, 2020 18:18
-
-
Save Pishoy/313a1b9295a9b32c999bddb59bf3ead9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ErrorDocument 400 /error/400-bad_request.html | |
ErrorDocument 401 /error/401-authorization_required.html | |
#ErrorDocument 402 /error/402-payment_required.html | |
ErrorDocument 403 /error/403-forbidden.html | |
ErrorDocument 404 /error/404-not_found.html | |
#ErrorDocument 405 /error/405-method_not_allowed.html | |
#ErrorDocument 406 /error/406-not_acceptable.html | |
#ErrorDocument 407 /error/407-proxy_authentication_required.html | |
ErrorDocument 408 /error/408-request_timed_out.html | |
#ErrorDocument 409 /error/409-conflicting_request.html | |
#ErrorDocument 410 /error/410-gone.html | |
#ErrorDocument 411 /error/411-content_length_required.html | |
#ErrorDocument 412 /error/412-precondition_failed.html | |
#ErrorDocument 413 /error/413-request_entity_too_long.html | |
#ErrorDocument 414 /error/414-request_uri_too_long.html | |
#ErrorDocument 415 /error/415-unsupported_media_type.html | |
ErrorDocument 500 /error/500-internal_server_error.html | |
#ErrorDocument 501 /error/501-not_implemented.html | |
#ErrorDocument 502 /error/502-bad_gateway.html | |
ErrorDocument 503 /error/503-service_unavailable.html | |
#ErrorDocument 504 /error/504-gateway_timeout.html | |
#ErrorDocument 505 /error/505-http_version_not_supported.html | |
################################################################################ | |
DirectoryIndex index.html index.php | |
<IfModule mod_rewrite.c> | |
RewriteEngine on | |
# Some hostings require RewriteBase to be uncommented | |
# Example: | |
# Your store url is http://www.yourcompany.com/store/cart | |
# So "RewriteBase" should be: | |
# RewriteBase /store/cart | |
RewriteBase / | |
RewriteCond %{REQUEST_FILENAME} !\.(png|gif|ico|swf|jpe?g|js|css)$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . index.php?sef_rewrite=1 [L,QSA] | |
RewriteCond %{REQUEST_FILENAME} .*\/catalog\/.* | |
RewriteCond %{REQUEST_FILENAME} -d | |
RewriteCond %{REQUEST_FILENAME}/index.html !-f | |
RewriteRule . index.php?sef_rewrite=1 [L,QSA] | |
RewriteRule ^sitemap\.xml$ ./index.php?dispatch=xmlsitemap.view [L] | |
RewriteRule ^sitemap\.xml$ ./index.php?dispatch=xmlsitemap.view [L] | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment