Remove index.php from url in permalinks over IIS server (web.config)
There was something installed on the IIS server that was capable to read the .htaccess files; and was ignoring the web.config so the WP documentation with .htaccess works for me.
There was something installed on the IIS server that was capable to read the .htaccess files; and was ignoring the web.config so the WP documentation with .htaccess works for me.
It turned out these erroneous links were generated by Facebook Feed WD plugin. Searching the code for phrases such as page_number_0 didn’t turn up any results, as the code in question was imported from outside the server, and switching to the default theme gave a red herring because it hid the widget and fixed the … Read more
Just answering to close out the question, but if anyone has other opinions please chime in. No, it’s not possible to use % signs in post permalinks without some very hackish workarounds. It’s also not advisable given they are used in URLs as special characters. That said, the lack of % symbols in the permalink … Read more
UPDATE: I fixed it by clearing my browser’s cache, it was caching files so it used the old copy. BONUS: You can load a web page without loading your caches by using Ctrl + F5
You can do like this, to append QUERY to permalinks (not base url): add_filter( ‘post_type_link’, ‘my_append_query_string’, 10, 4 ); function my_append_query_string( $permalink, $post, $leavename, $sample ) { if ( $post->post_type == ‘shop’ ) { if (get_option(‘permalink_structure’)){ $permalink = AddStringToUrl($permalink,’color=red’); } } return $permalink; } function AddStringToUrl($current_url, $string) { return $current_url . ( stripos($current_url, ‘?’) === … Read more
You just need to echo get_post_permalink() <?php echo get_post_permalink();?>
The problem is that Apache directs your traffic to the directory “peer” before WordPress is even loaded. You have two choices here. Either you edit the .htaccess to redirect the user to WordPress or you simply change the name of the directory and point the “peer.example.com” subdomain to that directory instead.
Ohh it was quick! I figured it out, so simple. I only had to change the scheme to the following: …/%category%/%postname%/ Great! Thanks anyway 😉
If the data is coming from a third-party, then putting rules into the Permalinks section of the WP admin panel won’t work. You’ll need to write some code to register your own URL parameter(s) for the pagination, in order to achieve clean URLs. First, you need to register the parameter, I suggest not calling it … Read more
Make sure your Apache web server have mod_rewrite. Create .htaccess on your wordpress root directory with following content (or add these to existing .htaccess file): # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress