|
i have been unable to generate sef url whenever the url contains the parameter "task" with the value "new"
comment: i just saw that this is hard coded in components/com_sef/joomsef.php::sefRelToAbs
why?
what would be the ramification if i just removed @$task != 'edit'
|
no sef url when task ...
|
Posted 18 years, 1 month ago
by gobezu
|
|
trying bumping up this question
any ideas would be of great help
|
excluding suffix
|
Posted 18 years, 1 month ago
by gobezu
|
|
is there anyway to exclude the suffix other than through the configuration?
would it be possible to call the sefGetLocation in such way so that this is achieved?
thanks for this component, i am starting to really come through with most of what i need to do!
|
excluding suffix
|
Posted 18 years, 1 month ago
by gobezu
|
|
|
exclude often varyin ...
|
Posted 18 years, 1 month ago
by gobezu
|
|
I have the usual rewrite rules in order to use sef.
Further I have set some auth rules in my administrator directory for the sake of security.
Both of this included below.
But whenever I try to access the administrator directory I get 404.
Any tip would be of help, thanks!
.htaccess in the root directory
<Files *.ini> Order deny,allow Deny from All </Files> AddHandler application/x-httpd-php5 php ExpiresActive On ExpiresByType image/gif A2592000 ExpiresByType image/jpeg A2592000 ExpiresByType image/png A2592000 Options +FollowSymLinks RewriteEngine On # Merging js, css requests RewriteCond %{REQUEST_FILENAME} !(administrator\/.*|dev\/.*|sfs\/.*|crm\/.*)$ RewriteRule ^(.*\.js) includes/js/combine.php?type=javascript&files=$1 RewriteCond %{REQUEST_FILENAME} !(administrator\/.*|dev\/.*|sfs\/.*|crm\/.*)$ RewriteRule ^(.*\.css) includes/js/combine.php?type=css&files=$1 # block out some common exploits # Block out any script trying to set a mosConfig value through the URL 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] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*) index.php
.htaccess in administrator directory:
AuthUserFile /home/username/.htpasswd AuthGroupFile /dev/null AuthName "admin area" AuthType Basic <limit GET POST> require valid-user </limit>
|
rewrite / .htaccess ...
|
Posted 18 years, 1 month ago
by gobezu
|
|
i have a number of a tags with the href attribute set to # and the onclick event is tied to a function which implements a certain logic on where to go next, and at the end of the function i set the document.location.href to forward the user
now i am certain that there are no issues what so ever with the javascript function which works just fine in non-seo mode
and yet in seo-mode the request variables just disappear and i get redirected to the root of the site
any help would be appreciated
Post edited by: gobezu, at: 2007/03/01 07:39<br><br>Post edited by: gobezu, at: 2007/03/01 07:40
|
javascript redirect
|
Posted 18 years, 1 month ago
by gobezu
|
More |