Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^tones/([^.]+)/([^.]+).html$ polyphonic_tones.php?mmchar22_1=$1&mmstart22_1=$2&mmsection22_1=&mmphonetype22_1=&mmmoreinfo22_1=&mmpart22_1=&mmsearch22_1=&mmstype22_1=&mmcat22_1=&mmcountry22_1= [L] tones/whatever/whatever.html That's if only the mmchar22_1=Y&mmstart22_1=1 always have something after the =
Thanks, I did that still the same thing, no change in the url! Im I doing somthing wrong? www. smsjunky .com this is the url that m trying for mod rewrite! Thanks again!
http://www.smsjunky.com/tones/y/1.html Now the image code needs changed. Browsers think there at.... http://www.smsjunky.com/tones/y/images/speaker.gif
Yes Its working Thanks, I will change the Image code! What should I do for this url? http://www. smsjunky. com/polyphoni...&mmstart22_1=1&mmsection22_1=&mmphonetype22_1 =&mmmoreinfo22_1=0&mmpart22_1=&mmsearch22_1=&mmstype22_1=&mmcat22_1=&mmcountry22_1=# # at the end! hmm Its giving me error since everything it is now looking at /tones/y/ dont know what to do with that one! How can I have a mod rewrite for this url? http:// bollyhome. com/component/option,com_frontpage/Itemid,1/limit,4/limitstart,4/ Thanks Nintendo you are doing a great help! Thanks!
I'm not sure if # can change. That's a comment line in .htaccess along with perl. http://www.smsjunky.com/tones/y/uk_top_40_polyphonic.php type of URLs also need a line added to .htaccess. Post the original URL for those links and I can post the code. Post the php URL to that.
this is one of the url: http://www.smsjunky.com/polyphonic_tones.php?mmchar22_1=K&mmstart22_1=1&mmsection22_1 =&mmphonetype22_1=&mmmoreinfo22_1=&mmpart22_1=&mmsearch22_1=&mmstype22_1=&mmcat22_1 =&mmcountry22_1=# http://www.smsjunky.com/phone_compatibilty.php http://www.smsjunky.com/ringtones.php?mmchar0_1=N&mmstart0_1=1&mmsection0_1=&mmphonetype0_1 =&mmmoreinfo0_1=&mmpart0_1=&mmsearch0_1=&mmstype0_1=&mmcat0_1=&mmcountry0_1=
If you did for example RewriteRule ^tones/([^.]+)/([^.]+)/([^.]+)/([^.]+)/([^.]+)/([^.]+)/([^.]+)/([^.]+)/([^.]+)/([^.]+).html$ polyphonic_tones.php?mmchar22_1=$1&mmstart22_1=$2&mmsection22_1=$3&mmphonetype22_1=$4&mmmoreinfo22_1=$5&mmpart22_1=$6&mmsearch22_1=$7&mmstype22_1=$8&mmcat22_1=$9&mmcountry22_1=$10 [L] you would end up with domain.com/tones/y/1///////// So if those don't ever have anything in the URL just take them out of the links if you can. http://www.smsjunky.com/phone_compatibilty.php to http://www.smsjunky.com/phone_compatibilty.html RewriteRule ^([^.]+).html$ $1.php [L] Should cover them all. if it messes up some URLs, RewriteRule ^phone_compatibilty.html$ phone_compatibilty.php [L] for each file.
Thanks again! Im doing it now! Hopefully this way I will be able to have all long urls shorten up and SE will index them faster! Its working fine, But I'm still seeing this url! http://www.smsjunky.com/logos.html?mmchar1_1=&mmstart1_1=1&mmsection1_1=277&mmphonetype1_1= &mmmoreinfo1_1=0&mmpart1_1=&mmsearch1_1=&mmstype1_1=&mmcat1_1=&mmcountry1_1= Is there way to take this out? Thanks!
In the script, search for mmsearch1_1, mmpart1_1 and so on and take the extra pert of the URLs out. mod_rewrite can't take them out of the links! Only the script can by being changed.
The FAQ has been updated with info from replies added to it. And I've placed it in the Public Domain. If you know info that's missing, you can add to the FAQ. It uses wiki.
great, one litle thing a lot of people fall flat on is when rewriting directory style e.g. domain.com/a/b/b/c a lot of people miss their pics and graphs, due to the fact that these have not been made absolute links or been coded apropriately. Thought I mention it Expat
Please anyone can help me: My dynamic URl is: http://www.bluesoftweb.com/links/index.php?ax=list&sub=1&cat_id=1 I tried a lot with all the mod rewrite techniques that are avilable online. But Sometimes it is not working and sometimes it shows errors.
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^links/([^.]+)/([^.]+).html$ links/index.php?ax=list&sub=$1&cat_id=$2 [L] domain.com/.htaccess domain.com/links/WHATEVER/WHATEVER.html
Yeah i substituted it for my domain name at 'domain.com' And also substituted 'WHATEVER/WHATEVER.html' with list/page1.html Is it true??? Or am i missing something??
er... http://www.bluesoftweb.com/links/index.php?ax=list&sub=1&cat_id=1 to http://www.bluesoftweb.com/links/1/1 if list changes... RewriteRule ^links/([^.]+)/([^.]+)/([^.]+).html$ links/index.php?ax=$1&sub=$2&cat_id=$3 [L]
This also giving errors Okay let it go. I will try some other script which has mod rewrite documentation with it. Thanks anyway for all your help.
Im stuck here with this url http:// domain. .com /search.html?author=&category=&keyword=&number=&x=28&y=6 n i used this re write code! search.html?author=$1&category=$2&keyword=$3&number=$4&x=$5&y=$6 and its not working any help please?
Post the complete .htaccess file code you got. The left part before the first $ tells the server how you want it. That part tells it where the file is at.
# 301 redirects... Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.xr-designs\.com RewriteRule (.*) http://www.xr-designs.com/$1 [R=301,L] RewriteRule ^SeachedResults.html$ search.html?author=$1&category=$2&keyword=$3&number=$4&x=$5&y=$6 [L,NS,NC,QSA] ErrorDocument 404 http://www.xr-designs.com hope this helps!