Find Jobs
Hire Freelancers

simple .htaccess mod rewrite help

$30-5000 USD

Cancelled
Posted almost 16 years ago

$30-5000 USD

Paid on delivery
I am having a problem with my .htaccess file with the goal of SEO friendly URLs. I have a page like this with a page= querystring <[login to view URL]> I have the .htaccess file working to rewrite it like so <[login to view URL]> RewriteRule .* - [F,L] RewriteRule ^([^/]*)\.html$ /[login to view URL]$1 [L] The problem comes in when I have a rewrite where they is another querystring variable in which it would seeingly require a subdirectory Example <[login to view URL]> To <[login to view URL]> RewriteRule ^([^/]*)/([^/]*)\.html$ /?page=$1&id=$2 [L] The problem with this one is that the complex CRM I have for the site right now has it where all the js, css and images are relative and since this looks like it is in another directory none of the images, css or js get loaded. My next attempt was this rewrite RewriteRule ^([^/]*)\.html$ /?page=blog&id=$1 [L] To try to get the "blog" pages to show up like this in the root directory <[login to view URL]> That just throws a 404 error. So, what I need is either 1. A rewrite to where all my images,js, and css elements load with the the /blog/[login to view URL] senerio (most preferable) 2. A rewrite that will work with <[login to view URL]> as well as my current rewrite for all th non-blog pages. Thanks
Project ID: 3049639

About the project

4 proposals
Remote project
Active 16 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
4 freelancers are bidding on average $46 USD for this job
User Avatar
See private message.
$25.50 USD in 2 days
4.9 (302 reviews)
7.0
7.0
User Avatar
See private message.
$63.75 USD in 2 days
4.9 (102 reviews)
6.5
6.5
User Avatar
See private message.
$17 USD in 2 days
4.9 (222 reviews)
6.3
6.3
User Avatar
See private message.
$63.75 USD in 2 days
5.0 (33 reviews)
4.5
4.5
User Avatar
See private message.
$38.25 USD in 2 days
0.0 (1 review)
0.0
0.0

About the client

Flag of UNITED STATES
United States
5.0
14
Member since Jul 13, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.