?
Solved

htaccess appending old url

Posted on 2014-11-10
2
Medium Priority
?
241 Views
Last Modified: 2014-11-13
Old URL is appending with this 301 redirect access code - anyone have any suggestions? Here is what the URL looks like http://www.website.com/client/iconic/company-overview?p1=about-iconic

<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME}  !-d
RewriteCond %{REQUEST_FILENAME}  !-f

#added %253F for '?' in page name url
RewriteRule ^securities/?([0-9a-zA-Z%253F-]+)?/?$ index.php?p1=$1 [QSA,L]
RewriteRule ^([0-9a-zA-Z%253F-]+)?/?$ index.php?p1=$1 [QSA,L]
</IfModule>

Redirect 301 /client/iconic/about-iconic http://www.website.com/client/iconic/company-overview
Redirect 301 /client/iconic/portfolio http://www.website.com/client/iconic/portfolio-overview
Redirect 301 /client/iconic/investor-relations http://www.website.com/client/iconic/investor--overview-%257E-test

Open in new window

0
Comment
Question by:Lanmarkian
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Author Comment

by:Lanmarkian
ID: 40434825
The URL is appending "?p1=about-iconic" - An example is: http://www.website.com/client/iconic/company-overview?p1=about-iconic

We need it to say http://www.website.com/client/iconic/company-overview

Any help or guidance is appreciated.

Thanks in advance.
0
 
LVL 70

Accepted Solution

by:
Jason C. Levine earned 2000 total points
ID: 40435304
The first two RewriteRules are the culprit.  They fire first and rewrite the url.  The Redirect 301 statements below that never trigger.

Move the Redirects above the Rewrites.
0

Featured Post

WordPress Tutorial 3: Plugins, Themes, and Widgets

The three most common changes you will make to your website involve the look (themes), the functionality (plugins), and modular elements (widgets).

In this article we will briefly define each again, and give you directions on how to install them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

CTAs encourage people to do something specific to show interest in your company, product or service. Keep reading to learn why CTAs should always be thought of as extremely important, albeit small, sections of websites.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question