Forum Moderators: phranque
how can remove "sobi2Task=sobi2Details&" and "sobi2" from url? for example:
[localhost...]
to
[localhost...]
i don't know every things about htaccess. please help.
the htaccess in Joomla is :
<snip>
[edited by: jdMorgan at 2:53 am (utc) on Mar. 31, 2009]
[edit reason] Do not post copyrighted material! [/edit]
It is links that define URLs. Change the links on the pages.
Next, set up a rewrite to connect those URL requests to the real internal server location that will server that content.
Finally, set up a redirect so that requests for old URLs are redirected to the new URL.
I have this rewrite, but nothing happend. ?
can anyone help me.. iam a beginner.
RewriteCond %QUERY_STRING ^catid=([^&]+)&Id=([^&]+)
RewriteRule ^directory?$ /index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=%1&sobi2Id=%2&Itemid=2 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?option=com_sobi2&sobi2Task=sobi2Details([^&]+)&catid=([^&]+)&sobi2Id=([^&]+)&Itemid=2\ HTTP/
RewriteRule ^index\.php$ http://localhost/directory?catid=%1Id=%2? [R=301,L]
Jim
I can't say I understand the problem well, but the first rule needs a RewriteCond to check and back-reference the query string:RewriteCond %QUERY_STRING ^catid=([^&]+)&Id=([^&]+)
RewriteRule ^directory?$ /index.php?option=com_sobi2&sobi2Task=sobi2Details&catid=%1&sobi2Id=%2&Itemid=2 [L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?option=com_sobi2&sobi2Task=sobi2Details([^&]+)&catid=([^&]+)&sobi2Id=([^&]+)&Itemid=2\ HTTP/
RewriteRule ^index\.php$ [localhost...] [R=301,L]It is likely that at least some details are still incorrect...
Thanks for your Reply.
I have do this, but nothigs happend
for your information:
all thing what I want is, remove the "sobi2Task=sobi2Details".