Status
Not open for further replies.

madroe

New Member
3
2013
0
0
Hi,

I want to change rewrite url to remove id number, so

site/2-post.html --> Normally
site/post.html --> That I want


Is it possible ? I've checked modules php files and changed codes where was necessary, but in .htaccess couldn't unable to set. my .htaccess is here I guess there is necessarry part when I changed it some problems happend

Code:
RewriteRule ^([0-9]+)-([^/]*)\.html$ /index.php?newsid=$1&seourl=$2 [L]

Please help me
 
Last edited:
7 comments
I'm not very good with .htaccess
But this might do it, Give it a try:

Code:
RewriteRule ^([^/]*)\.html$ /index.php?newsid=$1&seourl=$2 [L]
 
I know it is unique, but are there any ways to remove id or examples removing id from cms systems' seo url ?
 
Status
Not open for further replies.
Back
Top