Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

.htaccess


epiploicum

Recommended Posts

Hi everybody

I have problem with .htaccess.I have seo-g and there is example from this cont:

Options +FollowSymLinks
RewriteEngine On
RewriteBase /
RewriteRule ^(.*).html$ root.php?$1.html&%{QUERY_STRING}

 

But i have code from my hosting,which looks like this:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^XXXXXXdomenaXXXXXX.cz
RewriteRule (.*) http://www.XXXXXXdomenaXXXXXX/$1 [R=301,QSA,L]
RewriteRule ^([^\.]+)$ index.php?hodnota=$1 [L,QSA]

..and to index.php i have to write this:

<?
echo "<html><body><pre>";

# url rewrite
#$vars = explode("/",$_SERVER["PATH_INFO"]);
#$a=$vars[1];
#$b=$vars[2];
#$c=$vars[3];
echo "hodnota = $a\n";

?>
</pre></body></html>

 

..so my problem is,how to have finaly .htaccess code.

Please help me,thanks you very much

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...