Create simple Apache mod_rewrite for rewriting URLs to a new structure
$10-30 USD
Terminado
Publicado hace casi 9 años
$10-30 USD
Pagado a la entrega
I need a custom rewrite rule for Apache (on LInux) that will run in httpd.conf. It will use RewriteMap with MapType of dbm (/etc/[login to view URL]). I also use Wordpress which has its own Directory Based rewrite in .htaccess (default) which shouldn't be in collision with the newly created rewrite rule. 301 permanent redirect should be used.
Map structure
-----------------
Note: it uses a fixed set of lines, so there is no matching needed, nothing is dynamic, the database will index a long list of old and new URIs:
[login to view URL] sample:
[login to view URL] /2005/12/12/some-name
[login to view URL] /2003/12/12/some-name2
[login to view URL] /2005/03/03/some-name3
...
[login to view URL] /2006/03/03/some-name-extra
[login to view URL] /2008/03/03/some-name-blah
[login to view URL] /2000/03/03/some-name-nlah
...
etc
Rewrite
-----------------
IF
[login to view URL]
REDIRECT 301 TO
[login to view URL]
etc.
BTW, as the site uses Wordpress, this is the typical .htaccess in the web root:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /[login to view URL] [L]
</IfModule>
The new rewrite shouldn't be in collision with the actual Wordpress rewrite rule.
Hello,
I am a System Administrator with extended knowledge in BSD and Unix in general.
I have worked in HP as Unix Deep Technical Support 3rd Level. Also I have deployed first 4G LTE Mobile Network in Bulgaria with custom Unix solutions along with Nokia/Cisco/Huawei equipment integrating everything to the point to work flawless.