21307 Posts in 5737 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 923 Views |
-
stop ?url= appearing

20 January 2009 at 2:08am
Hi,
On some pages I'm finding that ?url= is automatically added to the end of URLs,
eg http://www.rustyspigot.com/NetZero is rewritten to http://www.rustyspigot.com/NetZero/?url=/NetZero
Is there some way I can turn this off? Perhaps with .htaccess?
Im using the nested urls branch which may be causing this.
Thanks for any suggestions,
Chris -
Re: stop ?url= appearing

20 January 2009 at 8:38am
Nah.. But if I remember correctly a solution floats on the forum... I think it had to do something with trailing-slash in .htaccess ..
Sam .... help !! ;-)
-
Re: stop ?url= appearing

20 January 2009 at 11:21pm
Hey Fuzz ,thanks for your help - after a forum search i found http://www.silverstripe.org/archive/show/53326 and changing my htaccess fixed this. smiles
### Mod_rewrite
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain\.com.\au [NC]
RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L]### SILVERSTRIPE START ###
RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} !/$
RewriteCond %{REQUEST_URI} !^/admin
# Redirect to add a trailing slash
RewriteRule (.*) http://www.domain.com.au/$1/ [R=301,L]RewriteCond %{REQUEST_URI} ^/home/$ [NC]
RewriteRule (.*) http://www.domain.com.au/ [R=301,L]RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$
RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
### SILVERSTRIPE END ###
| 923 Views | ||
|
Page:
1
|
Go to Top |


