I gang

htaccess modrewrite work for integration with VBSEO

This project involves updating a few mod_rewrite settings in a .htaccess file to play nice with vbSEO. This file is partially setup already and a few rewrite rules need to be created and some edited. Specifically what needs to happen is:

1. The new forum install is in the root directory. There is an old install located at [url removed, login to view] I need all files like [url removed, login to view] to redirect properly to vbseo.php. Here is a working example of such a redirect for the format [url removed, login to view] The number is the ID for the thread. Here is an example of the same thing with a multiple page variable involved.

2. Same as above I need the old gallery install at html/youshotit/ to point to /gallery. This does not go through vbseo, so it is just a matter of remapping the folder to say gallery instead of the old path.

3. The current .htaccess file contains two redirects for the showthread example in #1. I suspect they are interfering with my ability to redirect html/forums/ files as they are overaggressively matching the files. If number 2 is done correctly or these are moved down in the file this might not be necessary.

I would have attached the .htaccess file but I'm on an airplane and the wifi access seems to be blocking the upload.

Here it is pasted below. I had to kill some comments for it to fit:

--------------------------

RewriteEngine On

Options +FollowSymlinks

# ******

# [url removed, login to view] rewrite rules

# Two domains share a common back end and some information is replicated between the domains. The

# [url removed, login to view] file is used to keep google from indexing the duplicate content.

# ******

# Redirect the [url removed, login to view] for [url removed, login to view]

RewriteCond %{http_host} ^myseconddomain\.com [nc]

RewriteRule ^[url removed, login to view]$ [url removed, login to view] [L]

# Redirect the [url removed, login to view] [url removed, login to view]

RewriteCond %{http_host} ^mydomain\.com [nc]

RewriteRule ^[url removed, login to view]$ [url removed, login to view] [L]

# Redirect the [url removed, login to view] for [url removed, login to view]

RewriteCond %{http_host} ^[url removed, login to view]\.com [nc]

RewriteRule ^[url removed, login to view]$ [url removed, login to view] [L]

# Redirect the [url removed, login to view] [url removed, login to view]

RewriteCond %{http_host} ^[url removed, login to view]\.com [nc]

RewriteRule ^[url removed, login to view]$ [url removed, login to view] [L]

# Redirect root of [url removed, login to view] to the forums area

RewriteCond %{HTTP_HOST} ^myseconddomain\.com [nc]

RewriteCond %{REQUEST_URI} ^/$

Rewriterule ^.+$ [url removed, login to view] [L,R=301]

# *****

# Even Older forum URL re-write rules

# Fixes [url removed, login to view] sends direct to vbSEO... Maybe

# *****

# Need some code here

# ******

# Old forum URL re-write rules

# Fixes [url removed, login to view], sends direct to vbSEO

# ******

# For forums with two pages

RewriteCond %{QUERY_STRING} ([0-9]+)-[^/]+\/page([0-9]+)$

RewriteRule ^(forumdisplay\.php)$ [url removed, login to view]$1&f=%1&page%2 [L]

# For forums without two pages

RewriteCond %{QUERY_STRING} ([0-9]+)-[^/]+$

RewriteRule ^(forumdisplay\.php)$ [url removed, login to view]$1&f=%1 [L]

# For forums with two pages

RewriteCond %{QUERY_STRING} ([0-9]+)-[^/]+\/page([0-9]+)$

RewriteRule ^(showthread\.php)$ [url removed, login to view]$1&t=%1&page%2 [L]

# For forums without two pages

RewriteCond %{QUERY_STRING} ([0-9]+)-[^/]+$

RewriteRule ^(showthread\.php)$ [url removed, login to view]$1&t=%1 [L]

# ******

# vBSEO stuff

# ******

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/[url removed, login to view]$1 [L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)

RewriteRule ^((archive/)?(.*\.php(/.*)?))$ [url removed, login to view] [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/

RewriteRule ^(.+)$ [url removed, login to view] [L,QSA]

Færdigheder: Apache

Se mere: php integration with html, direct file upload, common current, upload in google play, rewrite old access, modrewrite, htaccess, gz, airplane, indexing url, htaccess apache, apache htaccess working, html gallery integration, htaccess mod_rewrite, write code htaccess, apache file share, apache rewrite redirect, php rules rewrite, php rewriteengine, htaccess rewriteengine, apache 301, htaccess 301, php htaccess rewriteengine, apache htaccess redirect 301, rewriteengine

Om arbejdsgiveren:
( 2 bedømmelser ) San Diego, United States

Projekt-ID: #927625

Tildelt til:

seadz

I can do it for you

$50 USD på 1 dag
(2 bedømmelser)
2.4

3 freelancers are bidding on average $117 for this job

toinnisfree

quick pro help. ftp and escrow required.

$150 USD in 2 dage
(1 bedømmelse)
1.5
sunandp

I can do it for u. please check my PM.

$150 USD in 2 dage
(0 bedømmelser)
0.0