Menu Content

Podpora

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

The file from HELL--> .htaccess !!! [ RESOLVED]
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1
  • 2

TOPIC: The file from HELL--> .htaccess !!! [ RESOLVED]

The file from HELL--> .htaccess !!! [ RESOLVED] 18 years, 2 months ago #257

  • caseyy
I red all topic and test but nothing nada .. niet ...

So after install and activate the plug in, all links then become somthing like /contacts.php etc... but always have 404 from apache if click on it ..

my joomla site is not in the root but like this : www.lethon.com/poissons/ ... so my *very famous but impossible* file .htaccess should be :

++++++++++++++++++++++++++++++++++++++
bla bla.... .... bla bla...
## Can be commented out if causes errors, see notes above.
Options FollowSymLinks
#
# mod_rewrite in use
RewriteEngine On
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)
RewriteBase /poissons
########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section
########## Begin 3rd Party or Core SEF Section
#
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR]
##optional - see notes##
RewriteCond %{REQUEST_URI} (/|.htm|.php|.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section

++++++++++++++++++++++++++++++++++

all combinaison i have tried ...switching with comment/uncomment (#) with "FollowSymLinks" or "Standard SEF & / 3rd Party, RewriteCond / RewriteRule".... but the same... and it dont seem to affect the links at all... .... should i choose standard or 3rd part ? ... and why ?


C.
... plug in de délire ...

Post edited by: caseyy, at: 2006/09/17 02:05<br><br>Post edited by: caseyy, at: 2006/09/22 11:27

Re:The file from HELL --&gt; .htaccess !!! 18 years, 2 months ago #259

  • caseyy
ok.. I just now make an clean install of joomla (Joomla_1.0.11-Stable-fr.zip) with only com_joomsef-1.2.4 insatalled. My repertory is just like www.mondomaine.fr/joomla so the .htacces should be :

(notice : of course my setting in joomla admin as SEO or joomsef are ok, links in the site appear now like /contact.php or /link.html ...)

--------------------------------------------------------------------------------

## Can be commented out if causes errors, see notes above.
Options FollowSymLinks

#
# mod_rewrite in use

RewriteEngine On


# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory (just / for root)

RewriteBase /joomla


########## Begin Standard SEF Section
## ALL (RewriteCond) lines in this section are only required if you actually
## have directories named 'content' or 'component' on your server
## If you do not have directories with these names, comment them out.
#
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
#RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
#RewriteRule ^(content/|component/) index.php
#
########## End Standard SEF Section


########## Begin 3rd Party or Core SEF Section
#
RewriteCond %{REQUEST_URI} ^(/component/option,com) [NC,OR] ##optional - see notes##
RewriteCond %{REQUEST_URI} (/|\.htm|\.php|\.html|/[^.]*)$ [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
#
########## End 3rd Party or Core SEF Section
--------------------------------------------------------------------------------
... but still have 404 error (..) .... right now i'm really wonder if this plug-in really works ????.... :-/

C.

Re:The file from HELL --&gt; .htaccess !!! 18 years, 2 months ago #260

  • ximtus
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 &lt;script&gt; tag in URL
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%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]
#

I'm using this .htaccess working great, you can try this one

Re:The file from HELL --&gt; .htaccess !!! 18 years, 2 months ago #266

  • jirka
Hi,

does you Apache conf allow you to use .htaccess files at all. And if yes, does it allow using RewriteRules there (check AllowOverride directive).

If this is ok, make sure, Joomla! SEF is enabled also.

Best regrds,
Jiri

Re:The file from HELL --&gt; .htaccess !!! 18 years, 2 months ago #269

  • caseyy
Hi Jiří,

How could i know or check that ? ( should I ask my web host to check ? )

C.

Re:The file from HELL --&gt; .htaccess !!! 18 years, 2 months ago #289

  • jirka
Hello casey,

yes, if your web is hosted somewhere and you have no access to main Apache configuration files, you should check with the webhosting provider. He should either allow you to use .htaccess with needed permissions or you will need to host your site somewhere else. (e.g. with us :-])

Best regards,
Jirka
  • Page:
  • 1
  • 2
Přihlášení uživatele Prázdný