hi please look at this url when evry body visit http://www.noorksa.com/download.php?filename=baa6a5a295.zip it's not redirect automatically to http://www.noorksa.com/dbaa6a5a295.zip.html what am i supposed to do?? plz help me what can i do ??
Is the filename a coming from query on the database or just a single file that needs the link changed?
phpPig thanks for replay the filename coming from query .. i think there some php code put it in the file "download.php" but what is it ?? ... ads2help thanks for replay yes am using htaccess for do that take a look here Options +FollowSymlinks RewriteEngine on RewriteRule ^d([A-Z,a-z,0-9,.,\_]*).html$ download.php?filename=$1 [L] PHP: please i need your's help
Looks like I misunderstood you. You want to redirect http://www.noorksa.com/dbaa6a5a295.zip.html to http://www.noorksa.com/download.php?filename=baa6a5a295.zip --- Your syntax is wrong. Try this. Options +FollowSymlinks RewriteEngine on RewriteRule ^d([A-Za-z0-9.,_]*)\.html$ what.php?filename=$1 [L] Code (markup): If you need simpler URLs, read this seo friendly url with htaccess.
no ads2help i need redirect http://www.noorksa.com/download.php?filename=baa6a5a295.zip to http://www.noorksa.com/dbaa6a5a295.zip.html automatically all i need is redirect automatically but how there some php code must i put it in download.php file ??
But your htaccess rules show the opposite of what you are trying to do. If you need to redirect http://www.noorksa.com/download.php?filename=baa6a5a295.zip to http://www.noorksa.com/dbaa6a5a295.zip.html, you don't need htaccess, just php. The php codes you need to put in download.php: header('location: http://www.noorksa.com/d'.$_GET['filename'].'.html'); PHP:
please look example see that url http://forum.e7s.com/showthread.php?t=488 when u visit it .. it's redirect automatically to http://forum.e7s.com/t488.html i need to know how ?? and thanks
Okay, not sure if this will work but this is what I always have used in every script that I have ever written. The only real difference that I can really see is that you may define the string .html$ as .zip.html$. Example Options +FollowSymlinks RewriteEngine on RewriteRule ^d([A-Z,a-z,0-9,.,\_]*).zip.html$ download.php?filename=$1 [L] Try that and see how that turns out.
Options +FollowSymlinks RewriteEngine on RewriteRule ^d([A-Z,a-z,0-9,.,\_]*).([0-9,a-z]+).html$ download.php?filename=$1 [L] Maybe that will work for you.
If this doesn't work and you don't have too many filenames, make separate entries into the .htaccess file. such as: Options +FollowSymlinks RewriteEngine on RewriteRule ^d([A-Z,a-z,0-9,.,\_]*).zip.html$ download.php?filename=$1 [L] RewriteRule ^d([A-Z,a-z,0-9,.,\_]*).3gp.html$ download.php?filename=$1 [L] RewriteRule ^d([A-Z,a-z,0-9,.,\_]*).rar.html$ download.php?filename=$1 [L] I use this feature on a few of the scripts that I have written for search engine optimization for different keywords.
it's dosen't work .. not redirect automatically yet ... i think not from htaccess .. there some php code to do that .. thanks phpPig to trying
If you need to redirect http://www.noorksa.com/download.php?filename=baa6a5a295.zip to http://www.noorksa.com/dbaa6a5a295.zip.html, you don't need htaccess, just php. Is it because you don't have the file called dbaa6a5a295.zip.html?
This is the thing I don't understand, if you do not have that file, why did you want to do the redirect??
so sorry for that . you right i need mod writer .. short url that what i need forgivme for my mistake this is first time i write here and my english it's too bad thanks ads2help