Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

Rewrite first subdirectory?

$
0
0

How do I create a rewrite rule to accomplish a rewrite on the first subdirectory without a trailing slash?

Example: http://domain/this-should-rewrite

That will go to: http://domain/title.asp?i=this-should-rewrite

I have other url rules that still need processed and I've tried to create a rule with this pattern:

^([0-9a-z-]+)

but it rewrites every single url on the site. I tried to also place the rule at the end of the rules list but it still accomplishes the same behavior.

If this is the correct rule, I think I might need to place this rule at the bottom and to stop processing of all previous rules once they find their matches.

Please advise.


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>