I've been looking few different tutorials about it, like URL rewriting for beginners.
And I thought it would be easy to do my own rewrite rule, but I don't know why it's not working.
This is what I have in my htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wp2/
RewriteRule ^lol portafolio [NC,L] # Change feed URL
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wp2/index.php [L]
</IfModule>
# END WordPress
And when I write wwww.domain.com/wp2/lol, it's not redirecting me to wwww.domain.com/wp2/portfolio which this code:
RewriteRule ^lol portfolio [NC,L] # Change feed URL
should do... I guess it's not correct. Why is it not doing the rewriting correctly? I need to rewrite a bunch of URLs.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ app/webroot/ [L]
RewriteRule (.*) app/webroot/$1 [L]
</IfModule>