PDA

View Full Version : I try to make used a url rewrite mod


trueman
04-11-2006, 02:18 PM
Hi.

I try to used url rewrite mod to show url like that:

mydomain.com/category1.html

Subcategory:
mydomain.com/category1/subcategory1.html


I notice that someone used a url rewrite mod that you link will look link: http://www.web-designers-directory.org/affordable-web-designers.php

Can you tell me how to do that?

I try to used the url rewrite from mikemike that located at {topic moved or deleted}

The url endings on the categories are with ".html" and working great, but if i click on a subcategory nothing happens, The script only reloads the actual Page.

I install it at http://linkexchanged.name (you can see what’s wrong there)

bobby9101
04-11-2006, 05:36 PM
it is a ,htaccess problem post that code please

trueman
04-11-2006, 05:42 PM
thank you, this is my .htaccess code:

#################################################
## PHP Link Directory - Apache Server Settings ##
#################################################


# Protect files and directories
<Files ~ "(\.(inc|inc.php|tpl|sql)|backup|files|images|inclu de|lang|libs(/.+)?|temp(/.+)?|templates(/.+)?)$">
Order deny,allow
Deny from all
</Files>

# Disable directory browsing
Options -Indexes

# Follow symbolic links in this directory
Options +FollowSymLinks

# Customized error messages
ErrorDocument 404 /index.php

# Set the default handler
DirectoryIndex index.php

# URL rewrite rules
<IfModule mod_rewrite.c>
RewriteEngine On

## Details Link Page Rewrite##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)detail/link-(.*).html$ detail.php [QSA]

## Pagination Rewrite
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*)page-(\d+)\.html$ $1/?p=$2 [PT]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^display/([0-9]+).html?$ /index.php [QSA,L]

</IfModule>

bobby9101
04-11-2006, 06:01 PM
i looked over the mod, and it does not use .htaccess???
try this, back up your files, then do not uninstall the mod, but re-install it!
this way if you made a mistake you can fix it easily