I published an issue yesterday concerning how to alter the displayed URL on the Wordpress-produced page, particularly from something similar to "mysite.com/?cat=3" to simply "mysite.com". I acquired a couple of replies that steered me towards doing some form of redirect with .htacess. After a little research and experimentation, I recognized it's less a redirect I want but simply a way to change the displayed URL within the browser.

Area of the challenge would be that the page under consideration is dynamically produced by a mix of standard Wordpress code, a Wordpress event calendar wordpress plugin (the-occasions-calendar), plus some custom code a developer added. I have performed around with permalinks and also the category slug, however i can't obtain the preferred result.

The larger question, I believe, is: "Is it feasible for any web server to provide, for instance, 'xyz.com/somedir/somefile.php?withsomequerystring=yes' but instruct the browser to show the URL as 'xyz.com/pretty-url' ?"

Cyber-terrorist appear to have the ability to do a variety of evil items to get people to think they are on a single web siteOrwebsite when they are really elsewhere. I'd think what I am asking can be done through htaccess/mod_rewrite, but I'm not sure how you can do it. I have been banging my mind from the wall about this for many days, and so i could be thrilled if anybody had a good option.

Thanks!

"Is it feasible for any web server to provide, for instance, 'xyz.com/somedir/somefile.php?withsomequerystring=yes' but instruct the browser to exhibit the URL as 'xyz.com/pretty-url' ?"

You cannot result in the browser show another URL compared to one it's on. But you skill, while you already say, is use mod_rewrite to internally translate xyz.com/pretty-url in to the URL you mention.

I might mess with this particular later - I am at the office. However I think this is not way too hard.

What I am hearing that for you to do is: The consumer (the browser, rather) demands the ugly URL, you need to show what's in the ugly URL, but you would like them to see the beautiful URL.

Rapid response is perform a header redirect in the ugly hyperlink to the beautiful url, after which do an internal rewrite from the pretty URL because the ugly URL.

You will need to lookup how you can do individuals a couple of things yourself, however they aren't hard. Also, you will need to either result in the header redirect greater priority compared to rewrite (put it greater up inshtaccess) or result in the internal rewrite the final rewrite (put [l] flag following the RewriteRule), to ensure that the redirects don't loop.

You pointed out plenty of custom code, though, with this solution, that code notice request originated from the beautiful URL. (And relative script/image/stylesheet references will resolve in accordance with the beautiful URL, but relative Web addresses in Wordpress could be very silly.)

@webwiz: You will probably find this answer I posted just ten minutes ago to become useful.

I would have the ability to help more but I have to understand what it's in your server that really creates the Web addresses for an additional format:

http://xyz.com/somedir/somefile.php?withsomequerystring=yes

that you would like transformed into:

http://xyz.com/pretty-url

I am wondering if them are routed through the *_link hooks I referred to within the other publish?

@Jesse Millikan - This is what I believe is going on...

1) mysite.com/index.php loads the very first Wordpress page at...

2) mysite.com/wordpress-content/styles/themename/index.php with a 301 redirect at the very top:

http://mysite.com/?cat=3") exit() ?>

3) mysite.com/?cat=3 may be the occasions calendar monthly view page also it loads (being an iframe, I believe)...

4) mysite.com/wordpress-content/plug ins/the-event-calendar/sights/monthlyview.php

The browser shows "mysite.com/?cat=3" which appears type of ugly in my experience. I believe the calendar wordpress plugin is using WP's groups to place its stuff on the a webpage (but without showing any posts for the reason that category, which you will find none). For reasons uknown, it appears to become utilizing a category page a the "vehicle" to complete its work.