Currently my links look like WITH permalinks on:
mysite.com/blog/post.html/variable/
What I WANT it to look like is
mysite.com/blog/variable/post.html
or the best might just be detecting the .html ending and turning it into
mysite.com/blog/post/variable.html
(though I'll settle for the variable folder to be anywhere BEHIND the .html at this point, the variable would also apply to the main page as well)
What is looks like with permalinks off is:
mysite.com/blog/wp-content/plugins/cool/plugin.php?l=VARIABLE&u=http://www.mysite.com/blog/post.html
I need the variable in the folder structure to move from the end to the beginning basically and my apache knowledge is very limited (to basic tutorials that only further confuse me).
- Code: Select all
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^([-a-z0-9\.]+)/([-a-z0-9\.]+)/?$ /plugin.php?l=$1&u=http://www.mysite.com/blog/$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress
As you can see that clearly doesn't work, and it in fact causes a 404 error in my dashboard (but the site seems unaffected). Can anyone please help me?
Thank you in advance.