Menu Content

Podpora

> Diskusní fóra, FAQs & placená podpora
Welcome, Guest
Username Password: Remember me

Profile for drblbaker

  • OFFLINE
  • Time Zone: GMT +0:00
  • Local Time: 14:57
  • Posts: 1
  • Profile Views: 1512
  • Location: Unknown
  • Gender: Unknown
  • Birthdate: Unknown

Signature

Posts

Posts

emo
After a great deal of searching and frustration, I am using this .htaccess, copied from another forum user -

Options +FollowSymLinks
DirectoryIndex index.php
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
# Security x 2 #
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*(.*) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (<|%3C).*script.*(>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|[|%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|[|%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
#

However, I want to use the redirect for the www. prefix to help with SEO. so that www.endurancepro.net and endurancepro.net are the same to the search engines.

The standard pattern is to add

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^endurancepro.net [NC]
RewriteRule ^(.*)$ www.endurancepro.net/$1 [L,R=301]

This breaks the site and I get a 404 error on the public side of the site but the admin still works.

Since line 1 and 2 are duplicates, I have tried deleting them and still get the same result.

Any suggestions on how to solve this problem?<br><br>Post edited by: drblbaker, at: 2007/04/26 00:53
.htaccess config
Category: JoomSEF 3
More
Přihlášení uživatele Prázdný