Home htaccess, Regex, Rewrite URL
Reply: 0

htaccess, Regex, Rewrite URL

user742 Published in June 20, 2018, 10:58 pm

hmm I have a problem with my .htaccess, I wanted to rewrite this:


to this


In other words... I want to delete the "thread-" and everything after the "." The /a/ must be variable... there are other forums with /bla/ and /code/

Do you have a clue for me? Thank you

My .htaccess right now:

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php

RewriteCond %{THE_REQUEST} ^[A-Z]+\ /index.php
RewriteRule ^index.php/?(.*) /$1 [L,R=301]

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.311271 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO