Htaccess problems
- or -
Post a project like this2020
£30(approx. $38)
- Posted:
- Proposals: 4
- Remote
- #2158803
- Completed
Description
Experience Level: Entry
I require someone with expert htaccess knowledge, please don't bid unless you believe you can fix these problems:
We have our own bespoke CMS system and we are trying to rewrite the following:
/index.php?pageid=about&pageid2=test&pageid3=blog TO /about/test/blog/
AND
/index.php?pageid=about&pageid2=test TO /about/test/
AND
/index.php?pageid=about TO /about/
We have already done this successfully using the following code in htaccess:
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ index.php?pageid=$1&pageid=$2&pageid=$3 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ index.php?pageid=$1&pageid=$2 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)/$ index.php?pageid=$1 [NC,L]
THE PROBLEM:
If you access /index.php?pageid=about it does not automatically redirect to /about/
If you access /about/ for example it will load the page fine but we want to have one url only accessible for stop duplicate content being accessed.
Any questions just let me know.
We have our own bespoke CMS system and we are trying to rewrite the following:
/index.php?pageid=about&pageid2=test&pageid3=blog TO /about/test/blog/
AND
/index.php?pageid=about&pageid2=test TO /about/test/
AND
/index.php?pageid=about TO /about/
We have already done this successfully using the following code in htaccess:
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ index.php?pageid=$1&pageid=$2&pageid=$3 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ index.php?pageid=$1&pageid=$2 [NC,L]
RewriteRule ^([A-Za-z0-9-]+)/$ index.php?pageid=$1 [NC,L]
THE PROBLEM:
If you access /index.php?pageid=about it does not automatically redirect to /about/
If you access /about/ for example it will load the page fine but we want to have one url only accessible for stop duplicate content being accessed.
Any questions just let me know.
Jack M.
99% (39)Projects Completed
55
Freelancers worked with
48
Projects awarded
32%
Last project
19 Mar 2024
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
Jack, could you please share website link so that we can review and provide you accurate estimates?
717611
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies