PDA

View Full Version : .htaccess file in free version


asterix
10-05-2006, 08:21 PM
Hello thanks for the software i ave server linux, bat when i make a new category not can open i look a blank page, i think for the .htaccess in my version of software i not ave.

can i create? can you post me the text of .htaccess?

this is the site abclink.it (http://www.abclink.it/)

Sergey Ten
10-05-2006, 08:29 PM
Welcome to our support forum asterix,

This is code:


RewriteEngine on

RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]

RewriteRule ^new-links.html$ new-links.php [QSA,L]
RewriteRule ^new-links([0-9]+).html$ new-links.php?page=$1 [QSA,L]

RewriteRule ^top-links.html$ top-links.php [QSA,L]
RewriteRule ^top-links([0-9]+).html$ top-links.php?page=$1 [QSA,L]

RewriteRule ^popular-links.html$ popular-links.php [QSA,L]
RewriteRule ^popular-links([0-9]+).html$ popular-links.php?page=$1 [QSA,L]

RewriteRule ^editor-links/index.html$ editor-links.php [QSA,L]
RewriteRule ^editor-links/index([0-9]+).html$ editor-links.php?page=$1 [QSA,L]

RewriteRule ^(.*)/(.*)-l([0-9]+).html$ view-link.php?cat=$1&title=$2&id=$3 [QSA,L]

asterix
10-05-2006, 08:33 PM
Very thanks!!!:good:

thanks!!!

Sergey Ten
10-05-2006, 08:36 PM
You are welcome asterix ;)

asterix
10-05-2006, 08:38 PM
I ave installed the .htaccess file!! the site one works very well !!!!
thanks!!!

Sergey Ten
10-05-2006, 08:42 PM
asterix

:good:

If you will have any other questions please let me know.

nileshsoni
11-02-2006, 08:30 PM
if i want to display in addressbar like below then what changes i have to make in below .httpaccess code....

want: http://directory.khazano.com/shopping/travel.html

if nore pages then http://directory.khazano.com/shopping/travel2.html

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteBase /

RewriteRule ^(.*)/$ index.php?category=$1 [QSA,L]
RewriteRule ^(.*)/index([0-9]+).html$ index.php?category=$1&page=$2 [QSA,L]

RewriteRule ^new-links.html$ new-links.php [QSA,L]
RewriteRule ^new-links([0-9]+).html$ new-links.php?page=$1 [QSA,L]

RewriteRule ^top-links.html$ top-links.php [QSA,L]
RewriteRule ^top-links([0-9]+).html$ top-links.php?page=$1 [QSA,L]

RewriteRule ^popular-links.html$ popular-links.php [QSA,L]
RewriteRule ^popular-links([0-9]+).html$ popular-links.php?page=$1 [QSA,L]

RewriteRule ^editor-links/index.html$ editor-links.php [QSA,L]
RewriteRule ^editor-links/index([0-9]+).html$ editor-links.php?page=$1 [QSA,L]

RewriteRule ^(.*)/(.*)-l([0-9]+).html$ view-link.php?cat=$1&title=$2&id=$3 [QSA,L]
</IfModule>

ErrorDocument 500 /dir/500.htm
ErrorDocument 404 /dir/404.htm
ErrorDocument 403 /dir/403.htm
ErrorDocument 401 /dir/401.htm


pls help me........

Michael Hill
11-03-2006, 03:33 AM
Do you have pages travel.html and travel2.html? Or this are your php files? Describe your trouble in details, please.