Skip to content
WJunction - Webmaster Forum

[HELP] DLE Rewrite URL Without ID

Status
Not open for further replies.
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]
 
You'll need some sort of plugin that will do that for you.

The number is unique indicator that DLE uses.
 
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.

About the author

M
New Member · Joined
3
Messages
0
Reactions
1
Points
Grow your business

Advertise on WJunction

Connect with an established international community of webmasters, hosting providers, developers and online entrepreneurs.

  • Premium & Premium+ Sticky
  • Dedicated section banners
  • Site-wide banner advertising
Explore advertising options
Back
Top Bottom