2012-08-17, 15:20:34
Hi there!
I almost done with my first GS project but i have some issues.
In the settings tab i use a fancy URL and permalink :%language%/%parent%/%slug%/
The issue
When i edit some page and use Link to local page from ckeditor everything look ok, after saving and checking the link into the site URL is not correct - look something like this:
http://www.mysite.com/%language%/pagename/ with Bad request! error.
There is my ..htaccess file
RewriteRule ^/?$ index.php?id=index&lang=ru[QSA,L] # optional
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(ru|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(ru|en)/?$ index.php?lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=ru[QSA,L]
How to resolve this problem. I hope somebody to help me with this.
I almost done with my first GS project but i have some issues.
In the settings tab i use a fancy URL and permalink :%language%/%parent%/%slug%/
The issue
When i edit some page and use Link to local page from ckeditor everything look ok, after saving and checking the link into the site URL is not correct - look something like this:
http://www.mysite.com/%language%/pagename/ with Bad request! error.
There is my ..htaccess file
RewriteRule ^/?$ index.php?id=index&lang=ru[QSA,L] # optional
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(ru|en)/(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$3&lang=$1 [QSA,L]
RewriteRule ^(ru|en)/?$ index.php?lang=$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*?/)?([A-Za-z0-9-]+)/?$ index.php?id=$2&lang=ru[QSA,L]
How to resolve this problem. I hope somebody to help me with this.