Please help with rewriting url like this:
**/zanr/?f=akcija** to only **/akcija/** (GET value)
and I don't need this "/zanr/" part in urls...
Thank you!
Related
I need to make this simple rewrite, but I'm probably wrong because it doesn't work.
Original url format: http://www.mydomain.nop/folder/component/option,com_seminar/cid,134/task,3/
New url format: http://www.mydomain.nop/folder/component/eventbooking/seminar/134
The variables I need are these:
.../component/option,com_seminar/cid,num1/task,num2/
(the one after 'task,' is a variable number like the other but not necessary for the new url)
This is my code which however reports a 404 error
RewriteEngine On
...
RewriteRule ^/component/option,com_seminar/cid,([^/]*)/task,([^/]*)/$ /component/eventbooking/seminar/$1 [R=301,L]
Thanks in advance and apologize for my not perfect english
PS. I would like the code to work even without the last / of the original url
My URL is
http://127.0.0.1/public_html/organisation/home/index.php?page=Your-Profile
but i want my url looks like this using .htaccess only:-
http://127.0.0.1/public_html/organisation/home/Your-Profile
i want to remove using .htaccess file index.php?page=
Please Help Me..
You can remove the /index.php as this is assumed/set by default by the engine, but you can't remove the ?page= as this is a query parameter, not part of the 'url' as you are thinking it. So it would look like http://127.0.0.1/public_html/organisation/home?page=Your-Profile
If you're using wordpress then there is an option in admin to set 'pretty urls' which would achieve this through other means.
How can I change url in this way using htaccess?
http://www.domain.com/index.html?page=home
http://www.domain.com/indexf6f2.html?page=blog
To
http://www.domain.com/?page=home
http://www.domain.com/?page=blog
You could try to generate your own .htaccess file based on your rules using this site http://cooletips.de/htaccess/ .
Regards, Hiawatha
I am not giving exact solution. Just utilize the followings, then you will be able to solve other URL rewriting using .htaccess
Take help from the following URL
http://roshanbh.com.np/2008/03/url-rewriting-examples-htaccess.html
Other important regarding rewriting through .htaccess
http://corz.org/serv/tricks/htaccess2.php
RewriteRule to rename URL?
For a nice basic
http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html
I need to modify a generated joomla url to another and htaccess seems like a nice way to do this. It's just that I'm not too familiar with it :/
I need to make this url:
http://www.site.com/component/uddeim/?task=new&recip=190&nouserlist=141
Rewritten into this url:
http://www.site.com/community/messages?task=new&recip=190&nouserlist=141
?task=new&recip=190&nouserlist=141 << the number values are dynamic, meaning they change
anyone can help? Thank you...
Assuming you mean that your end users will enter /component/uddeim/?... into their browsers, use:
RewriteEngine On
RewriteRule ^component/uddeim/? http://example.com/community/messages [L,QSA,R=301]
The QSA flag indicates that the original query string should be appended to the new URL, preserving it in whatever for it may be in.
I am trying to rewrite my url for generating the seo friendly url. My original url is something like
video_play.php?cat=1?author=3?video=4
where
"cat=1" is represents my category and 1 is id of my category name like song,movie etc..
"author=3" 3 is the id of singer.
"video=4" 4 is the id of track being played currently...
I want to make this url some thing like video_play/song/artistname/songtitle.html
I am trying this code in .htaccess if any one can help me.. Thanks in advance...
RewriteRule /author/(.*)/cate/(.*) video_play.php?author=$1&cate=$2
Try this instead:
RewriteRule /author/([^\.]*)/cate/([^\.]*) video_play.php?author=$1&cate=$2