Configuration
Overview
The Web357 wwwRedirect plugin is a Joomla system plugin that controls URL redirection including www/non-www toggles, HTTPS enforcement, and domain unification. This ensures better SEO and consistent access to your site. π
Basic Settings
Redirection Type
Select how the plugin handles redirection between www and non-www domain versions:
- Disabled: No redirection applied
- non-www β www: Redirect from
example.com
towww.example.com
- www β non-www: Redirect from
www.example.com
toexample.com
Force HTTPS
Controls the enforcement of secure HTTPS protocol π:
- Disabled: No HTTPS redirection
- http:// β https:// (Recommended): Forces secure connections
- https:// β http://: Reverts to non-secure HTTP (not recommended)
Apply Redirect on Admin
Choose whether the plugin should apply redirection rules in the Joomla admin area:
- Disabled (Recommended)
- Enabled
Advanced Settings
Exclusion Patterns
Specify paths or patterns that should be skipped from redirection. Add one pattern per line βοΈ:
<code>/api/ /ipn_handler.php /paypal_callback /webhook /^/admin/special/ /\.xml$/
Tips: Use plain strings or wrap regex patterns in /slashes/
.
Enable Logging
Toggle to enable or disable logging of redirection behavior. Logs are saved to Joomlaβs logs folder ποΈ.
- No: Logging disabled (default)
- Yes: Enables logging
Logs include:
- Timestamp
- Visitor IP
- Request method
- Source and destination URLs
- Matched exclusion pattern (if any)
Multi-Domain Redirection
Preferred Domain
Set your preferred domain to redirect all other aliases (e.g., dev.mydomain.com
) π.
Examples:
mydomain.com
www.mydomain.com
shop.mydomain.com
Domain Detection Tool
Detects the domain you're currently using and lets you apply it as the preferred domain via one click π±οΈ.
Example: domain.com
β Set as Preferred Domain
Common Usage Scenarios
Scenario 1: Standard SEO
<code>Redirection Type: non-www β www Force HTTPS: http β https
Scenario 2: Multi-Domain Consolidation
<code>Preferred Domain: www.mydomain.com Force HTTPS: http β https
Scenario 3: Payment Callback Exclusions
<code>Exclusion Patterns: /paypal_ipn /stripe_webhook /api/payment/
Redirection Priority Order
- Exclusion Patterns π
- Preferred Domain π
- Force HTTPS π
- WWW/Non-WWW βοΈ
Best Practices
- Test configuration on a staging environment π§ͺ
- Enable logging during setup for insights π
- Use exclusions for APIs and payment gateways π³
- Ensure SSL certificate before enabling HTTPS π
- Prevent redirect loops (avoid .htaccess conflict) π
- Use consistent canonical domain for SEO π
Troubleshooting
Redirect Loops
Cause: Conflict with server (.htaccess) redirects.
Fix: Disable .htaccess rules and use plugin settings only.
Backend Access Problems
Cause: Redirects enabled for admin area.
Fix: Disable "Apply Redirect on Admin" or add admin to exclusions.
Payment Gateway Errors
Cause: Payment callback URL was redirected.
Fix: Add payment paths to the exclusion list.