The mod-rewrite tag has no wiki summary.
1
vote
1answer
443 views
How to rewrite WordPress uploads folder to another folder using htaccess
I found that the following code online could be used to spoof the WordPress uploads folder, rewriting URLs to a different folder on the server:
# BEGIN Spoof wp-content/uploads directory
...
0
votes
3answers
621 views
Need to make a php file inside theme accessible via url
I checked this post here Making a plugin file accessible via url rewrite? which seems to have the same problem as me but its for a plugin. But so far i am getting 404.
add_action( 'init', ...
6
votes
1answer
4k views
How to create custom URL routes?
I have a very peculiar requirement, hopefully I can explain it without being too confusing. I created a page template where I list some properties I get from an external XML file, so far no problems, ...
0
votes
2answers
2k views
How can I hide that I Use Wordpress (with W3 Total Cache)
For security reasons I don't want it to be obvious that I use Word Press.
I use the W3 Total Cache plugin and minify HTML, CSS and JS. I may also use a CDN.
Is it possible to modify the W3 Total ...
0
votes
1answer
168 views
1 WordPress, 2 themes, 2 domains, 2 servers
I've got two sites which are hosted on different servers.
1) domain-one.com
2) domain-two.net
I installed a WordPress blog on site one at domain-one.com/blog/.
I want visitors of domain-two.net to be ...
0
votes
2answers
97 views
Need to capture “keyword” added to the end of the post, even with “pretty permalinks”
I have a script that I wrote some time ago, and have just decided to "port" it into a WP plugin.
Everything works great, except for one piece of vital core functionality.
The script uses mod_rewrite ...
0
votes
1answer
509 views
Can't get pretty permalinks to work without index.php
I've worked with WordPress for a while now and this is the first time I've had this problem, I can't get my permalinks to work without index.php on the URL even though mod_rewrite is enabled, a few ...
1
vote
1answer
341 views
Need help with simple rewrite rule (shouldn't this be easy?)
All I need is a rewrite that will change example.com/anyphrase into example.com.
Here is what I am using:
RewriteCond %{HTTP_HOST} ^example\.com
RewriteCond %{SCRIPT_FILENAME} !wp-admin
RewriteCond ...
0
votes
3answers
277 views
How to redirect a virtual page (e.g. /blog) to the home page?
I want my to reach my website's main page when entering an url like:
http://example.com/blog
However, I can't seem to get it to work with a typical rewrite rule:
RewriteRule ^/blog$ /
I'm always ...
0
votes
1answer
230 views
Already have htaccess but permalink settings not working. Getting 404
I have a .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
...
0
votes
2answers
945 views
mod-rewrite exception? keep #hash in matching urls?
Hey guys,
My WordPress permalink structure is set to `/%postname%/.
When I create a page with a name "FAQs" the permalink generated is "mydomain.com/faqs".
When I link to this page in my code ...
0
votes
1answer
116 views
apache_mod_loaded setting can fubar plugins?
I had a user recently who reported an issue with my plugin's options page not loading. They would click on the "settings" link but only got a blank page.
There was also an issue with the rich text ...
2
votes
2answers
879 views
Change author permalink
The original urls for users look like /author/login/
Is it possible to replace login by user's id?
In my dream urls should become to /users/34/ (34 is user id).
Thanks.
0
votes
1answer
412 views
Can't get permalinks working!
I can't get WordPress pretty permalinks to work on my Fedora LAMP server. If I set them and click a page/post link I'll get a ""Oops! This link appears to be broken."
The .htaccess file is writable ...
0
votes
2answers
654 views
Why is my mod_rewrite not working?
Ok I have a WP site using the permalink structure of /%category%/%postname%/
I have built it in the way of page templates, using category queries inside, i.e.
page-help.php
<?php $my_query = new ...
0
votes
1answer
179 views
Wordpress and Htaccess
Removing RewriteBase / from my htacess has sped up my site which is still working correctly.
Is it really required and what is it for?
-2
votes
1answer
194 views
Please give me the rewrite rules for my ugly urls
In functions.php I am adding a rewrite rule for this url:
http://www.myblog.com/?currentpage=1
http://www.myblog.com/?currentpage=2
And so on...
This is the code I use, can u please give me the ...
0
votes
1answer
2k views
Interesting Custom Post Type Slug with Taxonomy and Custom Field
I have created a custom post type called "events" and have also created a custom taxonomy which only shows up on this specific post type through which the admin must select an "event category" ...
1
vote
2answers
394 views
Using custom mod_rewrite without breaking wordpress permalinks
I am using a theme that uses posts for multiple pages, and the blog posts goes in a category called "blog", I am using the permalinks setting "/%postname%", and the blog menu url is "/category/blog", ...
0
votes
2answers
257 views
Static directories in a WordPress multisite network
I’m planning ahead for a class website, where students will have the choice to either build their pages from scratch, or to use a WordPress multisite install as a CMS.
I would like their work to ...
2
votes
2answers
2k views
Making a plugin file accessible via url rewrite?
In my WordPress plugin I have a php file that generates some stats about the blog and outputs it as a simple text file. To access WordPress functions I've included this at the top of the file:
...
4
votes
2answers
289 views
My permalinks are broken! Can I use mod_rewrite to ignore a physical file?
A website I work on recently posted a file at the root of their website named "2011.html." Now, any 2011 blog posts with the permalink structure of year/month/day/post-name do not work, and instead ...
2
votes
3answers
258 views
Can WordPress be installed at the root level, if a homepage called index.php already exists?
Can WordPress be installed at the root level, if a homepage called index.php already exists?
1
vote
2answers
1k views
mod_rewrite enabled but Permalinks show index.php
I just installed a friends blog on my LAMP stack, which has mod_rewrite enabled (I'm using it for clean URLs on my Drupal installs on the same server). For some reason, WordPress (3.0.3) isn't ...
0
votes
1answer
1k views
404 when fetching image from wp-content/uploads/
I get 404 status when fetching images, and the http still contains that image. Image shows up in a browser, but the 404 code breaks some applications.
calls to wp-content/uploads/ are redirected in ...
3
votes
1answer
1k views
Wordpress multisite causing Error 101 (net::ERR_CONNECTION_RESET): Unknown error [duplicate]
Possible Duplicate:
WordPress upgrade now receiving Error 101 (net::ERR_CONNECTION_RESET): Unknown error
We have just installed WordPress 3.0.1 and everything worked fine. However, as soon ...