• Resolved slavix

    (@slavix)


    Hi,
    I need to modify my .htaccess to rewrite urls for a plugin that does not support pretty links.. without ‘?’
    I modified plugin to skip ? in urls
    https://site.com/listings/?st=ca
    https://site.com/listings/st=ca

    now I need to have mod_rewrite rewrite the link so that wordpress understands it. here is what I have so far

    <IfModule mod_rewrite.c>
    	RewriteEngine On
    	RewriteBase /
    
    	RewriteCond %{REQUEST_URI}    !^listings/\?.*$
    	RewriteRule ^listings/(.*)/$ https://site.com/listings/?$1 	
    
    	RewriteCond %{REQUEST_FILENAME} !-f
    	RewriteCond %{REQUEST_FILENAME} !-d
    	RewriteRule . /index.php
    </IfModule>

    its not working though.. any ideas please

  • The topic ‘url rewriting question’ is closed to new replies.