Solved

htaccess appending old url

Posted on 2014-11-10
2
222 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
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 500 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to use embargo Date/time in php 29 35
ignore other .htaccess 2 43
two ways encryption with php 3 24
Decrypt string by php 7 27
Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

816 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now