Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Using mod_rewrite on WordPress urls

  • 22-02-2011 11:46pm
    #1
    Registered Users, Registered Users 2 Posts: 6,571 ✭✭✭


    This is related to my question about url rewriting on Zeus web server. I am trying to get the mod_rewrite code working on Apache first.

    I am using the Events Manager plugin. It generates urls like /event-detail/?event_id=180. I hacked the plugin code to generate a nice url like /spokes-duathlon-ei180

    In my .htaccess file I have:
    RewriteRule ^.*-ei(\d+)$ /event-detail/?event_id=$1
    
    but it doesn't appear to be working, I just get a 404 error (trapped by WordPress).
    I don't want to use a redirection plugin because it will expose the "ugly" url. When people "Like" the ugly url it is displayed as /event-detail, without the query_string.

    Tomorrow I will look at using WordPress' internal rewrite code.

    Anyone doing non-standard mod_rewrite stuff like this for WordPress?


Advertisement