Jump to content

stegers72

New Members
  • Posts

    9
  • Joined

  • Last visited

stegers72's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I tried, but it seems to return the same dynamic url. Since, obviously I made a mistake in the original post I tried to correct it with a better example. I'm sorry that I gave the wrong details, for some reason I cannot match the code with the actual configuration ....
  2. Does not seem to work, this is how I create the SEO urls : RewriteEngine On RewriteRule ^seo-friendly-foldername/([^/]*)\.php$ /product.php?model=$1 [L] The dynamic link looks like : http://www.site.org/product.php?model=12345 The SEO url looks like http://www.site.org/seo-friendly-foldername/12345.php The 301 redirect should become : http://www.site.org/seo-friendly-foldername/12345.php Any ideas ?
  3. But most of the dynamic url's are already in the search engines, I guess I need to tell them those URL's are invalid ?
  4. Hello ; So I made our dynamic urls static url's by using .htaccess (works) : RewriteEngine On RewriteRule ^product/([^/]*)\.php$ /model.php?model=$1 [L] But now I need to have a 301 redirect to the static pages to tell the search engines to index the static url's instead of the dynamic url's. I already updated robots.txt not to crawl the model.php pages. Can I do this in PHP or do I need to add another rewriterule in .htaccess - if so, how ? I already tried so many things, none of them work. Thanks; P.
  5. Thanks for the help. I appreciate it.
  6. This seems to do the job ... Many thanks for the help
  7. Thanks for your reply, yes I am trying to make a clickable image $ext = '.jpg'; $modelurl = 'http://www.test-url/'; $modelpageext = '.php';
  8. Hello ; I am trying to echo an image with url, but I keep getting an error, I think my parameter .$modelurl.$item['performerid'].$modelpageext is not correct. Anyone that can help me out a bit ? echo '<img src="'.$file.'" width=\"160\" height=\"120\" border=\"0\" alt=\"\">'; <a href=\".$modelurl.$item['performerid'].$modelpageext\">"; Many thanks in advance ; Pascal
  9. Hello ; What am I doing wrong, I am trying to save an image to a folder on a server, using a variable for image url, but I get an error: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING <?php $handle = @fopen("/tmp/<?=$item['Picture']?>", "r"); if ($handle) { while (!feof($handle)) { $buffer = fgets($handle, 4096); echo $buffer; } fclose($handle); } ?> What am I doing wrong ? Thanks for any help ...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.